npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How can the same component be used twice?

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?