Sharing Top Content from the Angular-sphere.
Browsing Tag

Location

Angular2 Lifecycle Hooks

>app.ts file: - - class MyComponent { - - constructor( ) { - - /*all other modules injection and dependency injection and initialization will go here*/ - - console.log(“This is Constructor”); // printed first in console - - } - - } - -…

Beginners Guide For Angular Module

For better understanding, before directly jumping into the Angular module, let me provide a few lines about what is Angular and what are Angular application.In the above diagram, @NgModule directive takes a single metadata object whose…