title: ng-click() in $sce.trustAsHtml doesn't work for uib-popover-html
body: <p>I'm trying to make a picker in a popover and I want to collect events by calling different functions, but the ng-click directive does not work.
  I read about $ compiles directive, but it doesn't work for me, because I can not use both directives at once.
  <p>My html:</p>
  
  <pre><code>&lt;button uib-popover-html="htmlPopover" class="btn btn-default"&gt;HTML Popover&lt;/button&gt;
  </code></pre>
  
  <p><p>My Ctrl:</p>
  
  <pre><code>$scope.htmlPopover = $sce.trustAsHtml('&lt;div class="picker"&gt;' +
      '&lt;div class="picker-items"&gt;' +
      '&lt;div class="picker-item" title=".fa-github"&gt;&lt;i class="fa fa-github"&gt;&lt;/i&gt;&lt;/div&gt;' +
      '&lt;div class="picker-item picker-selected label label-success" title=".fa-heart"&gt;' +
      '&lt;i class="fa fa-heart"&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="picker-item" title=".fa-html5"&gt;' +
      '&lt;i class="fa fa-html5"&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="picker-item" title=".fa-css3"&gt;' +
    '&lt;a ng-click=\"buttonClick()\"&gt;&lt;i class="fa fa-css3"&gt;&lt;/i&gt;&lt;/a&gt;' +
      '&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;');
  
  
  $scope.buttonClick  = function(){
    console.log("Well");
  
  };
  </code></pre>
  
  <p><p>My directive:</p>
  
  <pre><code>.directive('bindHtmlCompile', ['$compile', function ($compile) {
      return {
        restrict: 'A',
        link: function (scope, element, attrs) {
          scope.$watch(function () {
            return scope.$eval(attrs.bindHtmlCompile);
          }, function (value) {
            // In case value is a TrustedValueHolderType, sometimes it
            // needs to be explicitly called into a string in order to
            // get the HTML string.
            element.html(value &amp;&amp; value.toString());
            // If scope is provided use it, otherwise use parent scope
            var compileScope = scope;
            if (attrs.bindHtmlScope) {
              compileScope = scope.$eval(attrs.bindHtmlScope);
            }
            $compile(element.contents())(compileScope);
          });
        }
      };
    }]);
  </code></pre>
  
  <p>Can anyone help with this?</p>
  
  <p>Thanks  ;P</p>