title: ng-repeat do not evaluate from $sce.trustAsHtml inside directive
body: <p>I have a directive that has a piece of custom HTML that I can pass in as a custom option. I would like to use ng-repeat inside the custom HTML, but it is not being displayed. Here is the code.</p>
  
  <pre><code>var app = angular.module('plunker', []);
  
  app.controller('MainCtrl', function($scope) {
    $scope.name = 'World';
    $scope.local = {
      options: {
        columns: [{
          name: 'product_id',
          label: 'Product ID'
        }, {
          name: 'product_name',
          label: 'Name'
        }],
        getBody: function( col, i ) {
          return col.name == 'product_id' ? col.label : '&lt;div class="dropdown product-status"&gt;&lt;button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"&gt;Status&lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;&lt;span class="dropdown-arrow"&gt;&lt;/span&gt;&lt;ul class="dropdown-menu"&gt;&lt;li ng-repeat="one_status in dataset.status"&gt;&lt;a class="status all" ng-click="dataset.updateStatus(one_status.status_id)" ng-bind="one_status.status_name"&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;';
        }
      },
      dataset: {
        status: [{
          status_id: 1,
          status_name: 'first draft'
        }, {
          status_id: 2,
          status_name: 'in edit'
        }]
      }
    };
  });
  app.directive('test', function($sce) {
    var linkFunc = function(scope) {
      scope.getBody = function( col, index ) {
        return $sce.trustAsHtml( scope.options.getBody( col, index ) );
      };
    };
  
    return {
      link: linkFunc,
      scope: {
        options: '=',
        dataset: '='
      },
      templateUrl: 'test.html'
    };
  });
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/mCynQWtQElTGfoLXZHqZ?p=preview" rel="nofollow">http://plnkr.co/edit/mCynQWtQElTGfoLXZHqZ?p=preview</a></p>