Angular

Angular

#angular

1

1: Angular

2

2

2

Examples

5

-CARI

5

:

5

5

5

6

, ,

6

"Hello World"

7

:

7

1 :

7

2 :

8

3 :

9

2: For Loop

12

Examples

12

NgFor -

12

3: RXJS Observables

13

Examples

13

.

13

13

4:

14

14

14

Examples

14

14

@Input

15

@Output

16

Observable Subject

17

5:

20

Examples

20

20

21

6:

24

Examples

24

24

app.module.ts

24

ponent.ts

24

ponent.html

25

validators.ts

26

26

- ponent.html

26

- ponent.ts

27

- signup-request.model.ts

27

- app.module.ts

28

- ponent.html

28

7:

29

Examples

29

29

8:

31

31

Examples

31

31

31

34

You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: angular

It is an unofficial and free Angular ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official Angular.

The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@



1

1: Angular

Angular ( " Angular 2+ " " Angular 2 " ) Google Angular TypeScript . AngularJS . ?

, (:@ / ) (@ / ) .

Angularized HTML

.

. Angular

.

. HTML . .

src / app / ponent.ts

. Angular

import { Component } from '@angular/core';

@Component({ selector: 'my-app', template: `Hello {{name}}`

}) export class AppComponent {

name = 'Angular'; }

@Component . HTML

.

selector index.html Angular .

index.html ( body )

Loading AppComponent content here ...

. "Hello" {{name}} . . Angular {{name}} name .

. name 'Angular' 'World' .

JavaScript TypeScript . Angular JavaScript . .

TypeScript . TypeScript JavaScript .

Angular .

5.0.0-beta.1 () 2017-07-27

4.3.2

2017-07-26

5.0.0-beta.0 2017-07-19

4.3.1

2017-07-19

4.3.0

2017-07-14



2

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download