I have text $scope.post.details = <b>hello</b>
I have this directive:
var app = angular.module('mobApp.services');
app.directive('compile', ['$compile', function ($compile) {
return function(scope, element, attrs) {
scope.$watch(attrs.compile, function(html) {
element.html(html);
$compile(element.contents())(scope);
});
};
}]);
I am using like
problem is <b>
is not getting render as <b>