dynamic-bind-html is a directive inspired by ng-bind-html that accepts uncompiled angular code in addition to raw html.
You can also manually trigger a re-$compile of its contents with an "updateDynamicBindHtml" event.
HTML:
In the controller:
Once compiled, directives inside a dynamic-bind-html will perform as expected:
$broadcast or $emit an "updateDynamicBindHtml" event and dynamic-bind-html will recompile its contents.
HTML:
In the controller:
Note (ng-repeat only): When using this directive, wrap ng-repeats to avoid a bug where Angular fails to clean up the references properly after the update event.
displayedCollection: "{{displayedCollection}}"order: "{{order}}"
Doesn't require a $broadcast:
Requires a $broadcast: