To use ng-bind-compile for bind html with compilation.
<div ng-bind-html="html"></div>
<div ng-bind-compile="html"></div>
$scope.html = $sce.trustAsHtml('<button ng-click="click()">Click</button>');
$scope.click = function() {
alert('Compiled.');
}
ng-click will not work.
ng-click will work.