I'm loading a template and then compiling it against my scope using $compile
service.
var template = "<div> .. {{someCompilingStuff}} ..</div>";
var compiled = $compile(template)(cellScope);
and then using it in a popover
cellElement.popover({
html: true,
placement: "bottom",
trigger: "manual",
content: compiled
});
My template is quite complex and may take some time to compile.
How can I make sure that angular has finished compiling the template before using it in the popover ?
Edit: I tried to force angular to $apply()
before creating the popover, it does work but generate javascript errors which is not acceptable for me.