4 key building blocks of angular 2 apps
Components
Directives
Routers
Services
Component
Service
Router
Directive
- keywords added to DOM elements
ng new
What is Angular?
A platform and framework for building single-page client applications using HTMl and TypeScript
NgModules
Views
decorators
AppModule (root module)
- provides bootstrap mechanism
workspace
project
attribute directive
changes the appearance of behavior of a DOM element
ng generate directive DIRECTIVE_NAME
instantiates the directive to your src/app
ng serve
starts server, runs app
pipe operator |
transform strings, currency amounts, dates, and other data for display
simple functions you can use in template expressions to accept an input value and return a transformed value
[(ngModel)]
two-way binding
dependency
services or objects that a class needs to perform its function
provider
something that can create or deliver a service
provider
something that can create or deliver a service