I have created module with controller:
<div ng-app="myModule" ng-controller="myController" >
<div id="myContainer" data-type="{{type}}"></div>
</div>
Then after some time I need inject into container #myContainer some HTML which have directives inside. HTML code is loaded with ajax.
Code to be injected:
<div ng-repeat="element in elements" data-id="{{element.id}}">
// some other code heere
</div>
I'm new in AngularJS (I'm using version 1.5.7), but what I have read from documentation is that in some phase of bootstraping angular module/app the mutation observer is binded and I cannot bootstrap the injected code.
So my question is: how to parse the injected code without bootstraping it? And how to pass the elements
var?
P.S.
I know about ng-include
but I cannot use it here.