Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Is there a way to support ng-include? #3

Open
butaixianran opened this issue Jul 15, 2015 · 0 comments
Open

Is there a way to support ng-include? #3

butaixianran opened this issue Jul 15, 2015 · 0 comments

Comments

@butaixianran
Copy link

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:

<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?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant