import { NgModule } from '@angular/core';
@NgModule({
imports: [],
exports: [],
declarations: [NameComponent],
providers: [],
})
export class NameModule { }
Angular Module
The NgModule hooks into the @NgModule decorator of other modules, and exports an object with the following properties:
imports: Array of other modules' names
exports: Array of other modules' exports
declarations: An object with the names of all components declared in this module
providers: An object with the names of all services that are available in this module
Library: angular
Shortcut: angular.module
0 Comments
Add Comment
Log in to add a comment