1

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

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.