Web
Analytics
Angular 4 Tutorial Archives - Page 3 of 8 - Tutorial

For Consultation : +91 9887575540

Stay Connected :

lazy loading in angular

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

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....
ngClass example in angular 5

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:...
ngStyle in angular  with example

ngStyle in angular with example

With the NgStyle directive, you can set a given DOM element CSS properties from Angular expressions. The simplest way to use this directive is by doing [style.]=”value”. For example: <div [style.background-color]="'yellow'"> Uses fixed yellow...
angular life cycle hooks

angular life cycle hooks

Lifecycle hooks are the way Angular allows you to add code that works before or after each step of the routing life cycle or components. List of Angular Hooks offers are: OnInit OnDestroy DoCheck OnChanges AfterContentInit AfterContentChecked AfterViewInit...
Select your currency