i 'm working on project that work with angularJs, and i use Cufon to change fonts. now, when controller loaded, cufon replace angular expressions and after that angularJs will run. that's my problem. i want Cufon run after Angular expression Binding. any one can help me?
in my HTML page:
<span class="input-label" id="lb" >{{s}}</span>
and in js:
$scope.s = "hiiii";
Cufon.replace('#lb', {onAfterReplace: Bifon.convert, fontFamily: 'B Titr'});
problem is where before angular binding happened, Cufon changes expression value.
any one can help me?
You might want to use a directive and listen to the element to be ready:
html:
js:
Working example
updated for cufon: