Created
April 30, 2014 14:08
-
-
Save adasq/b9f85fbebff2f7dee211 to your computer and use it in GitHub Desktop.
own lib ANGULAR
This file contains hidden or 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
angular.module("ui.mylib", ["ui.mylib.tpls", "ui.mylib.example"]); | |
angular.module("ui.mylib.tpls", ["template/example.html"]); | |
angular.module("template/example.html", []).run(["$templateCache", function($templateCache) { | |
$templateCache.put("template/example.html", | |
"<b>to jest przykladowy template</b>"); | |
}]); | |
angular.module("ui.mylib.example", []) | |
.directive('example', function () { | |
return { | |
templateUrl:'template/example.html', | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment