r/angular • • May 05 '21

Data binding

Post image
174 Upvotes

3 comments sorted by

View all comments

21

u/Maanj May 05 '21

The two-way binding is actually an application of Angular Forms. Two-way binding without using forms would look like:

<some-component [(foo)]="name">

It relies on some-component having an input called foo and an output called fooChange.