Last active
August 29, 2015 14:20
-
-
Save petebacondarwin/020c78b256dc6d04b5a0 to your computer and use it in GitHub Desktop.
Lazy Loading ...
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
index.html | |
<div ng-include="templateUrl"></div> | |
template1.html | |
<h1>Hello</h1> | |
app.js | |
if(randomNumber > 0.5) { | |
module.lazyLoad('appContainingH1Directive'); | |
} | |
$scope.templateUrl = "template1.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment