Answer the question
In order to leave comments, you need to log in
Why doesn't $Compile compile?
Such problems have never arisen, now something mysticism has gone
compileScope = $rootScope.$new();
compileScope.from = from.format('dddd MMMM DD');
compileScope.to = to.format('dddd MMMM DD');
compileScope.y = y || null;
console.log(compileScope);
var element = $compile(angular.element(
'<div class="tooltip-chart">' +
'<p>{{from}} - {{to}}</p>' +
'<p ng-if="y">USD: <bold style="color: #000000">{{y}}</bold></p>' +
'</div>'
))(compileScope);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question