Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • I like this idea, and it does include the code, but it is still not compiled. Commented Nov 1, 2013 at 13:22
  • 1
    works fine here as is plnkr.co/edit/sUOxHBUYIdQlAiM3Dy0V?p=preview Perhaps you have some nested directives or something else causing it not to work Commented Nov 1, 2013 at 16:51
  • 2
    But I'd like it to compile the code in the variable that you called test. For exemple plunker display the <div> and </div>, which is not what I'd like. Commented Nov 1, 2013 at 17:20
  • 1
    OK..can do it with link callback of directive Plunker Commented Nov 1, 2013 at 17:28
  • 2
    Indeed it compile html, but not the angular statements. In Plunker when the test variable is directly injected the ng-click method is connected, but when injected using the directive it isn't. Commented Nov 1, 2013 at 17:43