Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

Ionic prefetch config broken / $templateCache issue

$
0
0

@noda wrote:

Hello,

I have a gulp build process that package all html templates in $templateCache to 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 $templateCache templates 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

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>