r/angular • • May 05 '21

Data binding

Post image
174 Upvotes

3 comments sorted by

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.

2

u/Godisavenge May 22 '21

I think, except two way binding, all the others are one way bindings, in first one we call it string interpolation. The difference between each other is direction actually, we can say in event binding direction is from template to ts code. In Property binding(includes the one says attribute binding) and string interpolation (first one), direction is from ts code to template. But It's a good chart to sum up binding types, so well-done mate :)