Any idea about how primeNg(third-party library like Material) implements two way binding in their components because whenever I make a reusable component I have to provide values to the child using property binding and receive it in the child using @Input and if I want any data from the child I use @Output and receive it in the parent. But as seen in the primeNg reusable components, they can directly use two-way binding to provide and receive values.
Asked
Active
Viewed 332 times
0
-
Possible duplicate of [Angular 2 custom form input](https://stackoverflow.com/questions/34948961/angular-2-custom-form-input) – ymssa___ Nov 19 '19 at 07:43
-
Please have a look at this [answer](https://stackoverflow.com/a/37786142/6434407). – ymssa___ Nov 19 '19 at 07:44
1 Answers
0
You have to implement some of native functionality on your component. Like:
- Adding dynamic attribute
- Binding dynamic method (for change, key up, key down etc)
- Need to update the html as well. List is more I just mentioned some of basic steps.
Here you can read more about, your own two way binding.

Abhinav Kumar
- 2,883
- 1
- 17
- 30