Ng7 Module Detail - rishi0624/ng7-notes GitHub Wiki

Ng7 Module Detail

Following Module are created when we are installing the angular CLI

1. @angular/common: Provides the commonly needed services, pipes, and directives such as ngIf and ngFor etc..

2. @angular/platform-browser : Contains the functionality to bootstrap the application in a browser. Basically it includes everything DOM and browser related, especially the pieces that help render into the DOM. This package also includes the bootstrapStatic() method for bootstrapping applications for production builds that pre-compile templates offline.

3. @angular/platform-browser-dynamic : This Package or module contain some provider and bootstrap method to compile and run the application on the client using the compiler.

JIT: Just-in-Time (JIT), which compiles your app in the browser at runtime. AOT: Ahead-of-Time (AOT), which compiles your app at build time.

NOte : JIT compilation is the default when you run the ng build or ng serve

4. @angular/compiler : It reads application templates and convert them to code that makes the application run and render. Typically you don’t interact with the compiler directly; rather, you use it indirectly via platform-browser-dynamic or the offline template compiler.

5. @angular/core : Every angular application need this package. It included all metadata decorators, Component, Directive, dependency injection, and the component life-cycle hooks. It contain core functionality of component view and change detection.

6. @angular/forms : This package provide funcitionally for both template-driven and reactive forms.

7. @angular/router : The router module provide the funcitonally to navigate the application when browser URl changed.