Open asgeo1 opened 11 years ago
Hi, right now, the adapter uses jquery mobile to load the pages. By this, we are also using the jquery mobile page cache and not the templateCache of angular.
However, we could override $.mobile.loadPage
so that the normal template loading of angular applies....
Have to think about this and am converting this into a feature request.
As a workaround, you could put all your pages into your index.html (e.g. by creating a custom grunt plugin...).
Tobais
Hey, wow, i am happy to find this issue page! I am having issues with this feature too.
I need to load partials from templateCache in order to test them properly (note: i am not using any server side help unfortunately, long story..)
Anyway, if there is any way around this issue, please do let me know
--max
Right now, the only way is to add your page as internal jqm page into the index.html
, maybe in an automatic build step...
Tobias
well a good way of implementing this feature might be, by checking the templateCache first before using $.mobile.loadPage ?
Same problem here. Would like to use $templateCache with $routeProvider
Having this issue also
I'm trying to use the grunt-angular-templates module to bundle my templates.
https://github.com/ericclemmons/grunt-angular-templates
It will basically generate some code like this:
But the router in jquery-mobile-angular-adapter will not use the $templateCache, and will always make an ajax request to views/test.html:
However using a directive like this in index.html will work:
So it's definitely a problem with the router.
Any ideas?