I'm trying to use a jQuery plugin that can curve text (Arctext.js) as an Angular Directive.
The Directive seems to work fine, the given text is curved as expected, except that I want this text to be an Angular variable. And the problem is the jQuery plugin seems to be executed before Angular resolves the variable value.
My html element :
<h2 class="circle">{{ myController.myVar }}</h2>
My directive :
return {
restrict: "C",
link: function(scope, element, attrs) {
element.arctext({radius: 500})
}
}
The page displays '{{ myController.myVar }}' as curved text.
How to get the variable value instead ?