have the following code in my html page:
<div> <span ng-bind-html="perguntas"></span> </div>
already in my controller have the following:
> var html = "<div ng-click="setRespostaCerta()"><a class="resposta-btn">Click Me !</a></div>";
$scope.perguntas = $sce.trustAsHtml(html);
$scope.setRespostaCerta() = function(){
alert(Click);
}
When the page is loaded the button is normally displayed but when I click on it it does not work, what’s wrong?