Tutorial by Examples

A module is a class with the @NgModule decorator. To create a module we add @NgModule passing some parameters: bootstrap: The component that will be the root of your application. This configuration is only present on your root module declarations: Resources the module declares. When you add a ne...
Modules can be nested by using the imports parameter of @NgModule decorator. We can create a core.module in our application that will contain generic things, like a ReservePipe (a pipe that reverse a string) and bundle those in this module: import { CommonModule } from '@angular/common'; import {...

Page 1 of 1