I have a Scopevariable which contains the html-Code of a button with a ng-click Attribute and want to assemble the the Page dynamically.
$scope.myHtml = "<button class="someclass" ng-click="clickme()">Button</button>
and i am currently using the html like this:
<div ng-bind-html="myHTML"></div>
The Button displays pretty fine but the ng-click got removed, so how can i keep the angular expressions from the variable?
Thanks in advance!