Skip to content
Advertisement

Tag: angular

How do I detect change to ngModel on a select tag (Angular 2)?

I am attempting to detect a change on ngModel in a <select> tag. In Angular 1.x, we might solve this with a $watch on ngModel, or by using ngChange, but I’ve yet to understand how to detect a change to ngModel in Angular 2. Full Example: http://plnkr.co/edit/9c9oKH1tjDDb67zdKmr9?p=info As we can see, if we select a different value from the dropdown,

Advertisement