0

I have two directives 'chart', and 'legend'.

From the chart directive I append

<legend forScope="' + scope.$id + '"></legend>

but the legend directive never runs. How do I get angular to process the legend element?

1 Answer 1

2

Without looking at your code, it is not clear what are you doing. But generally, you will use the $compile service to compile the generated content before appending it to the dom. See http://docs.angularjs.org/api/ng.$compile

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

Comments

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.