I am having problem to print out an input type button dynamically in a div "ng-bind-html".
HTML template:
<input type="button" value="Add" ng-click="add()">
<div ng-bind-html="snippet"></div>
Controller:
$scope.add = function() {
$scope.snippet = "<input type='button' value='Test' ng-click='myFunc()'><b>Test 2</b>";
}
The tag input is removed and then I see just the "bold" text Test 2.
Thanks