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 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 module created services go to contribute to the global collection of services
providers
The one-time use location for all modules to provide a main application view component that host all other views
bootstrap
Component decorator in Angular
@Component
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 the services that the component will use?
providers
Decorator for a service that can be injected
@Injectable
Decorator for component input
@Input
Decorator for component output
@Output
Interpolation data binding
{{interpolated}}
property setting binding
[property]=”value”
Two-way binding (property setting and event binding)
[(ng-model)]=”propertyBinded”
Decorator that provides instructions for a template to use
@Directive
A directive that alters the layout be added for removing HTML elements
Structural Directive
Structural Directive Declaration
*directiveName=”directive command”
For loop directive
*ngFor