javascript - How could i include one tempate in another with html? -
i have code this:
<script id="innertemplate" type="text/template"> hello world </script>
and code this:
<script id="outertemplate" type="text/template"> name john! <p> /*here want include code of innertemplate*/ </p> </script>
does sombody know how it? thanks!
you can try that:
<script id="innertemplate" type="text/ng-template"> hello world </script> <script id="outertemplate" type="text/ng-template"> name john! <p ng-include="'innertemplate'"></p> </script> <div ng-include="'outertemplate'"></div>
Comments
Post a Comment