My page is a tree structure, which means there are some ng-include and embeded ng-include (ng-include in ng-include's html template)
This is what I tried:
<div>
<div ng-include="card.html"></div>
</div>
<script type="text/ng-template" id=" 'card.html' ">
<div>This is a card</div>
</script>
in js:
let result = ngEnviorment.$compile('<div><div ng-include="card.html"></div></div><script type="text/ng-template" id="card.html"><div>This is a card</div></script>')({name:"A Name"});
it doesn't work for now.
Is there a way to support ng-include?
Is there a way to support ng-include?
My page is a tree structure, which means there are some ng-include and embeded ng-include (ng-include in ng-include's html template)
This is what I tried:
in js:
it doesn't work for now. Is there a way to support ng-include?
Thanks