Hi
Here is a Plunker <http://plnkr.co/edit/ZsFjr3UWnn3DnjD6Ad5O> where I am
trying to use $templateCache to pass an html template file (template1.html)
in a directive.
I have a services.js where I get a siteID from which I get a template html
file (in the plunker case, template1.html). This template depend off the
siteID
service.mytemplate = $http.get(service.template, {cache:$templateCache});
where service.template should return template1.html. I would like to use
template1.html as templateUrl in the getTemplate directive
Any help would be appreciated.
Greg
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.