I have the following code inside my directive.
scope.value = 5;
alert(scope.value);
var compiled = $compile("<div><h1>{{value}}</h1></div>")(scope);
alert(compiled[0].outerHTML)
The first alert value is 5, however, the second one shows...
<div><h1>{{value}}</h1></div>
How do I get it to recognize the value?