angular 4 caching using localstorage and rxjs operator | example
angular 4 caching using localstorage and rxjs operator In this blog , I am discussing a very important feature implementation in angular that may improve the performance of angular application. For example if we are getting data from web api using httpclient module...
lazy loading in angular
lazy loading in angular By default, all the components of angular are loaded at the time of application startup. As we give all component declaration in the main module i.e app.module.ts, therefore, all the declared components in app.module.ts are loaded whenever the...
angular 4 viewchild example
ViewChild allows a one component to be injected into another. This means we need to implement the AfterViewInit lifecycle hook to receive the data from the child. ngAfterViewInit() is called after a component's view, and its children's views, are created. Its a...
ngClass example in angular 5
The ngClass too works on the same lines, except that it is used to toggle one or multiple classes. For example, check out the following code: import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-ngclassex', templateUrl:...