Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $templateCache for loading templates #168

Closed
eekboom opened this issue Jun 27, 2016 · 5 comments
Closed

Use $templateCache for loading templates #168

eekboom opened this issue Jun 27, 2016 · 5 comments

Comments

@eekboom
Copy link

eekboom commented Jun 27, 2016

We tried to use "ng-repeat" inside a tooltip's template.
That did not work and we needed a while to find out that the template specified via "tooltip-template" seems to not get compiled.
When we switched to "tooltip-template-url", we at first got 404s when the app tried to load that single template. Our build system uses grunt-angular-templates to put all template in a single js file that pre-populates the template cache.
Only after we copied all "*-tooltip-template.html" to the output build did it started to work (including the "ng-repeat").

So please check if any templateUrl is present in the cache already and only load it if it isn't found there (and then fill the cache after loading).

@gbruins
Copy link

gbruins commented Jun 27, 2016

+1
Just ran into this issue as well. Fairly critical issue, in my opinion, as any serious app will be caching it's templates

@45kb
Copy link
Member

45kb commented Jul 8, 2016

This is a great feature that somebody already tried to PR, unfortunately the PR was lacking in some points, if you can please your help is appreciated a lot.

@45kb
Copy link
Member

45kb commented Jul 8, 2016

#152

#150

@ruisilva450
Copy link

Sorry to ask but is this solved or not?

@45kb
Copy link
Member

45kb commented May 18, 2017

@ruisilva450 hi, it isn't solved, the issue is still open :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants