Skip to content

WolfieZero/scotch-school-getting-started-with-angular-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Angular 2

Following the course Getting Started with Angular 2+

Structural Directive

*ngFor="let user of users"
*ngIf="users"

Putting Info Into a Component

@Input()

Bindings

Property Binding - []

Data flows INTO it one-way

[class.active]="user === activeUser"

Event Binding - ()

Data flows OUT OF it one-way

(Click)="selectUser(user)"

Two-Way Data Binding - "The Banana in a Box"

[(ngModel)]="activeUser.name"

Links

Style Guide