@noda wrote:
Hello,
I have a gulp build process that package all html templates in
$templateCacheto avoid http request in production.I have configured the template prefetch to be disabled:
// Disable prefetch, as we use $templateCache $ionicConfigProvider.templates.maxPrefetch(0);However, when the app starts, it throws 404 by trying to get html templates (which are in the template cache).
It appears because my
$templateCachetemplates are set up in a separate run block that is executed after ionic init run block. The thing is, even considering that it should not try to prefetch the template as I have disabled it... (It works in other apps not based on ionic).Is there an issue with prefetch config, or have I overlooked anything?
Thanks
Posts: 1
Participants: 1