The model gets changed b
[(ngModel)] is used for the two way binding like from and to View and component,To use the ngModuleChange
we need to split it [()] (Banana into the box) than its become the Property Binding []
and the Event Binding ()
Inside the component.html
And inside the component.ts file , we need to use these setThresholds
method which get the value from Editext
like below
setThresholds(getValue)
{
console.log(getValue)
/**
* DO YOUR LOGIC HERE
*/
}
There is also another way to use by the getter
and setter
property to get and set the data from the view