Data binding

From Basef
Revision as of 10:38, 27 January 2020 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Variable binding:
{{ value }}


  • Property binding:
[property]="value"

or

bind-property="value"


  • Event binding:
(event)="handler"

or

on-event="handler"


  • Bi-directional property binding (any change in DOM is reflected in the component and vice versa):
[(ngModel)]="property"

or

bindon-ngModel="property"