Google Analytics is a platform that collects data and compiles it into useful reports. Tracking a Website To track a website, you first have to create a Google Analytics account. Then you need to add a small piece of Javascript tracking code to each page on your site. Every time a user visits a webpage,Continue reading “The process of collecting Analytics data”
Category Archives: Uncategorized
Change Detection Strategy
đ Change Detection Strategy By default Angular uses the ChangeDetectionStrategy.Default change detection strategy. The default strategy doesnât assume anything about the application anything from a click event to data received from an ajax call causes the change detection to be triggered. @Component({ template: ` <h1>Hello {{name}}!</h1> {{runChangeDetection}} ` }) export class HelloComponent { @Input() name: string;Continue reading “Change Detection Strategy”
Angular Router Tutorial
Angular Router Tutorial The Angular CLI is a command line interface tool that can create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment. For Single Page Application, Routing is the one and only tool or we can say module to navigate the pages to pages.Continue reading “Angular Router Tutorial”
How to use media qurey mixin in SASS
media-breakpoint-between($lower, $upper) Dependencies The mixins are declared in mixins/_breakpoints.scss, and depend on the $grid-breakpoints map, found in _variables.scss. Example Breakpoint map: $grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px ) Mixin: @include media-breakpoint-between(sm, md) { // your code } Compiles to @media (min-width: 576px) and (max-width: 991px) {} Important notice Media-breakpoint-between mixin usesContinue reading “How to use media qurey mixin in SASS”
Using NgTemplateOutlet
See the docs here: https://angular.io/api/common/NgTemplateOutlet In this post we will be breaking a CardOrListViewComponent into đ bite-sized pieces with the help of NgTemplateOutlet. Using NgTemplateOutlet instead of creating specific components allows for components to be easily modified for various use cases without having to modify the component itself. The CardOrListViewComponent displays items in a card or a list format depending on its mode: card-or-list-view.component.html <ng-container [ngSwitch]=”mode”> <ng-container *ngSwitchCase=”‘card'”>Continue reading “Using NgTemplateOutlet”