Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular 4 (features: [], imports[] (Importing a module does not provide…
Angular 4
-
imports[]
-
-
makes available any exported component, directive or pipe from that module
providers: []
-
Any Service provider registered to the providers array is registered at the root of the application.
Dont add services to the provider array of an shared module.
Consider building a core module for service and importing it once in the app module.
Every Application must bootstrap at least one component, the root application component
bootstrap: []
Bootstrap array should be used in root application module, AppModule.
Every Component, Directive and Pipe we create must belong to atleast one and only one Component.
Only add Components, Directives and Pipe
Never redeclare Component, Directive and Pipe that belong to another module.
All Components, Directive and Pipe declared are by default private.
They are only accessible to other components, directives and pipes declared in the same module.
-
Export any Component, Directive or Pipe if another component needs it.
Reexport modules to reexport their components, directives and pipes
-
-