Angular 2 Property Binding
05 January 2017
Hello everybody,
today I want to write few words about binding in AngularJS 2.
There are two ways of making one way binding:
- element property binded to template expression
- property interpolation
I've described it with following picture:
Two-way Binding
<input [(ngModel)]='property'>
And property is decalred in Component class like this:
export class ClassComponent {
property: string = "Property value";
}