i have this element in my html:
<div class='printOptionElements'></div> and i want fill it dynamicly with ng-click-elements in my Controller.
$scope.printoptions = function() { $(".printOptionElements").append("<div class='printoption printhideelement' ng-click='printhide()'>Hide</div>"); } if (document.URL.indexOf("print=true") > 0) { $scope.printoptions(); } $scope.printhide = function() { alert("hidetest"); } The printoption element will appear, but the ng-click will not work. I think that angular shows for ng-clicks before this ng-click is there. What can i do to "activate" the ng-click?
Thanks for help :)
Greetings Thomas