Recreating the DOM elements when a selected-object changes

5 views
Skip to first unread message

Cooper Milton

unread,
Jul 5, 2019, 9:23:37 AM7/5/19
to Angular and AngularJS discussion
Hi,

In my AngularJS UI, I have a combobox on top and a whioe bunch of complex custom-directives whose ng-models are bound to properties of the "selected object" in the combobox.

Now, currently when the selected object changes, all directives stay in place, listen to the ng-model changes (and other watchers) and doing it's thing. Instead I want them all to "redraw"/"refresh". How do I set this up?

(The reason I want to redraw is because the directives are all messed up with regards to listening to these changes and redrawing would be much cleaner).

Thanks
Reply all
Reply to author
Forward
0 new messages