Questions tagged «angular-ngmodelchange»

4
(变化)vs(ngModelChange)的角度
Angular 1不接受onchange()事件,它仅接受ng-change()事件。 另一方面,Angular 2接受(change)和(ngModelChange)事件,两者似乎都在做相同的事情。 有什么不同? 哪个最适合表现? ngModelChange: <input type="text" pInputText class="ui-widget ui-text" (ngModelChange)="clearFilter()" placeholder="Find"/> vs 变化: <input type="text" pInputText class="ui-widget ui-text" (change)="clearFilter()" placeholder="Find"/>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.