Ashish Patel: Notes

Atom feed

Recently added: Introduction, Abstraction, Xunit, Publisher subscriber pattern, Request reply pattern

Data binding defines the communication between a component and DOM. There are three types

  1. From the component to the DOM
    <li>Age: {{user.age}}</li>
  2. From the DOM to the Component
    <button (click)="register()"></button
  3. Two-way binding(It allows to have the data flow both ways. Both the DOM and component property are in sync)
    <input type="name" [(ngModel)]="user.name">

Created 2019-01-23T11:57:03+05:30, updated 2022-01-29T02:34:00+00:00 · History · Edit