Слайд 2Why?
Full development process
Cross platform
Speed and performance
Productivity
Слайд 3Why?
Modules.
Components.
One-way and two-way data bindings.
Dependency injection.
Routing.
Pipes.
etc.
Слайд 4Getting started
Webpack
Angular CLI
Слайд 5Getting started
Install Node.js
Install Angular-CLI globally
ng new ${project-name}
ng serve
Слайд 6App loading
index.ts -> platformBrowserDynamic().bootstrapModule(AppModule)
bootstrap: [ AppComponent ]
Слайд 7NgModule
Angular applications are modular.
Angular has own modular system called ngModules.
@NgModule({})
Слайд 8NgModule properties
Declarations.
Exports.
Imports.
Providers.
Bootstrap.
Слайд 9What is component?
A component controls a part of screen called a view.
Component
View
Слайд 10Why?
Reusable.
Customizable.
Independent from another components.
Easy to understand.
Develop faster.
Etc.
Слайд 11Component structure in application
Слайд 12Getting started
ng generate component component-name
ng g component directory/component-name
Слайд 13Component options
selector
template / templateUrl
styles / styleUrls
encapsulation
changeDetection
Etc.
Слайд 14Styles and tempalte
styles
template
:host selector
:host-context selector
Слайд 15Data binding (One way / Two way)
{{title}}
Lorem