At the moment AngularUI is loading templates from this location:
template/tabs/tab.html
I am trying to use another location. I can load the templates from inside a JS file, but I don't want to keep my HTML inside JS file.
I found a good examples from here : Can you override specific templates in AngularUI Bootstrap?
angular.module("TemplateModule", []).run(["$templateCache", "$http", function ($templateCache, $http) {
$templateCache.put("template/tabs/tab.html", "<div></div>");
$templateCache.put("template/tabs/tabset.html", "<div></div>");
}]);
Here you can see, that I am putting 2 templates and it works like this.
But I want the templates to be loaded from for example : work/files/tabs/tab.html
I was thinking about something like this...pseudocode
$templateCache.put("template/tabs/tab.html", $http.get("work/files/tabs/tab.html"));
Any suggestions?