Roman
Front End Developer at TechMagic
Angular Lviv Meetup Co-organizer
@graniron
roman.yavoriv@gmail.com
graniron
1. Intro
2. Angular CLI
3. Typescript
4. Rxjs
5. Angular Building Blocks
6. Router
7. Http
History Time
Angular Core Team
10/2010
First Release
09/2016
Documentation
Speed
Joy
Magic
1. Install the Angular CLI:
2. Generate New Project
3. Run
Automate Tasks
ES5
ES6
TypeScript
"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript"
Primitives
Non Primitives
string
number
Observables are lazy
An Observable doesn't start streaming items until it has at least on observer subscribed to it
You must remember to unsubscribe from some observables to prevent memory leaks:
From infinitive observables(like mouse events)
Any of your custom observables
Switch operator — convert an Observable that emits Observables into a single Observable that emits the items emitted by the most-recently-emitted of those Observables
Components/Directives/Pipes
Services
Other Modules
Bootstraped components
Exported members
Every Component/Directive/Service/Pipe should be registered in the Module
Data binding(a.k.a interpolation)
Interpolation
Property binding
Event handler
Child Component
Directive to iterate over collection
Angular:
Pipe Name
Pipe Params
alter layout by adding, removing, and replacing elements in DOM
*ngFor is an iterative; it tells Angular to create element for each iteration.
*ngIf is a conditional; it includes the element only if a condition is true.
Alter the appearance or behavior of an existing element
Custom directive
You can register providers in modules or in components
When providers added to the root module, the same instance of a service is available to all components in your app
When providers added at the component level, you get a new instance of the service with each new instance of that component
You can register providers in modules or in components
Provide service via DI
Use service
catchError
onError