I have angularjs template as a string including \"ng-repeat\" and other directives. I want to compile it in the controller to produce the result HTML as string.
Example
Give this a whirl:
var template = angular.element('{{item.data}}'); var linkFunction = $compile(template); var result = linkFunction($scope); $scope.$apply(); console.log(template.html());