Created
March 15, 2015 08:17
-
-
Save wcc526/baff51027fe8d1db1477 to your computer and use it in GitHub Desktop.
ng-include.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<h2>ngInclude</h2> | |
<script type="text/ng-template" id="other.html"> | |
<div>Other Template</div> | |
</script> | |
<nav> | |
<button class="btn btn-primary" ng-click="tpl='other.html'"> | |
load other.html | |
</button> | |
<button class="btn btn-primary" ng-click="tpl=null"> | |
load null | |
</button> | |
</nav> | |
<div ng-include="tpl"></div> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment