I would like to pass strings into textAngular
so that $scope properties are compiled For example
$scope.text = "Hey {{person.name}}";
Then in the HTML I have
<div text-angular ng-model="text"></div>
Temporarily I put together a hack for my controller.
$scope.$watch(function(){return $scope.text;}, function(html) {
$scope.text = $interpolate($scope.text)($scope);
});
How do I turn this hack into a directive that plays nice with textAngular?