W3cubDocs

/Angular

NgModule

decorator stable

npm Package @angular/core
Module import { NgModule } from '@angular/core';
Source core/src/metadata/ng_module.ts

Metadata Overview

@NgModule({ 
  providers?: Provider[]
  declarations?: Array<Type<any> | any[]>
  imports?: Array<Type<any> | ModuleWithProviders | any[]>
  exports?: Array<Type<any> | any[]>
  entryComponents?: Array<Type<any> | any[]>
  bootstrap?: Array<Type<any> | any[]>
  schemas?: Array<SchemaMetadata | any[]>
  id?: string
})

Description

NgModule decorator and metadata.

Metadata Properties

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/NgModule