Why? Getting started

Слайд 2

Why?

Full development process

Cross platform

Speed and performance

Productivity

Why? Full development process Cross platform Speed and performance Productivity

Слайд 3

Why?

Modules.
Components.
One-way and two-way data bindings.
Dependency injection.
Routing.
Pipes.
etc.

Why? Modules. Components. One-way and two-way data bindings. Dependency injection. Routing. Pipes. etc.

Слайд 4

Getting started

Webpack

Angular CLI

Getting started Webpack Angular CLI

Слайд 5

Getting started

Install Node.js
Install Angular-CLI globally
ng new ${project-name}
ng serve

Getting started Install Node.js Install Angular-CLI globally ng new ${project-name} ng serve

Слайд 6

App loading

index.ts -> platformBrowserDynamic().bootstrapModule(AppModule)
bootstrap: [ AppComponent ]

App loading index.ts -> platformBrowserDynamic().bootstrapModule(AppModule) bootstrap: [ AppComponent ]

Слайд 7

NgModule

Angular applications are modular.
Angular has own modular system called ngModules.
@NgModule({})

NgModule Angular applications are modular. Angular has own modular system called ngModules. @NgModule({})

Слайд 8

NgModule properties

Declarations.
Exports.
Imports.
Providers.
Bootstrap.

NgModule properties Declarations. Exports. Imports. Providers. Bootstrap.

Слайд 9

What is component?

A component controls a part of screen called a view.

Component

View

What is component? A component controls a part of screen called a view. Component View

Слайд 10

Why?

Reusable.
Customizable.
Independent from another components.
Easy to understand.
Develop faster.
Etc.

Why? Reusable. Customizable. Independent from another components. Easy to understand. Develop faster. Etc.

Слайд 11

Component structure in application

Component structure in application

Слайд 12

Getting started

ng generate component component-name
ng g component directory/component-name

Getting started ng generate component component-name ng g component directory/component-name

Слайд 13

Component options

selector
template / templateUrl
styles / styleUrls
encapsulation
changeDetection
Etc.

Component options selector template / templateUrl styles / styleUrls encapsulation changeDetection Etc.

Слайд 14

Styles and tempalte

styles
template
:host selector
:host-context selector

Styles and tempalte styles template :host selector :host-context selector

Слайд 15

Data binding (One way / Two way)

{{title}}


Lorem




Data binding (One way / Two way) {{title}} Lorem save