Contents tagged with binding

  • Angular 2 property binding

    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";

    } more