How can the same component be used twice?


(Komkumar) #1

I have created a custom component (number picker), I am binding the input field of the component using ngmodel. In the parent component, I am using this component twice. As i have used ngmodel for data binding, the value in input field always binds with the variable used for ngmodel. So everytime, i make a change at one place, the other gets affected. How can i solve this data binding issue and make the component re-usable?


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.