I have my custom decorator like from the tutorial which adds HTML code to a page. But if HTML code contains my custom component it will not be processed by AngularDart. How can I add a processed component from a decorator?
1 Answer
Components can't be added dynamically. Instead, use ng-hide with a bool value to toggle it. Then you can use your decorator to update the value upon your needs.
-
In fact components can be added dynamically. This is done in many places (for example views) See my answer here stackoverflow.com/questions/23184009 for an example or this Q/A stackoverflow.com/questions/20423565 (may be a bit outdated because of continually changing AnguldarDart API). Commented Aug 5, 2014 at 9:22