Thursday, September 7, 2017

resetting custom controls amid Angular 4 templates in hacking

As described here, it may be hard to manhandle third party controls which replace some of your HTML with their own HTML. I fought like mad with one today that turned checkboxes into little dressed up span tags with checkbox images in them. Anyhow, if the control appears as part of the repeating guts inside an *ngFor you can always reset the control to a default state by rehydrating the data driving the *ngFor. I did this today to uncheck a bunch of checkboxes upon the changing of tabs.

No comments:

Post a Comment