Architecture Flashcards
Manager for templates
component
Logic of the application.
service
boxes services and components
module
Decorators
functions that modify a javascript class
Module decorator in Angular
@NgModule
Where put view classes for a module
declarations
Where a modules’ subset of declarations should go to be visible to other modules go?
exports
Where a module places other modules to get the declaration classes from it.
imports
Where a modules’ created services go to contributes to the global collection of services
providers
The one time use location for all modules to provide a main application view component that hosts all other views
bootstrap
Component decorator in Angular
@Component
Neat fact: This is a directive!
Where to declare the tag name for a component to use in other templates.
selector
Where to declare the url to a component template
templateUrl
Where to declare services that the component will use.
providers
Decorator for a service that can be injected.
@Injectable