Angular 2 Core Concepts: Quick Reference
Last updated:WIP Alert This is a work in progress. Current information is correct but more content will probably be added in the future.
modules
imports
- import elements from other modules into this module
exports
- exports elements that will be available for other modules that import this one
declarations
- declares components, directives and pipes here.
provides
- injects elements (e.g. services) into the whole application
bootstrap
- used only in the root component (i.e. the
AppModule
) - bootstraps a component that will kick-start the application (in general, this is the
AppComponent
)
- used only in the root component (i.e. the
Modules do not inherit access to the components, directives or pipes that are declared in other modules.
components
TODO