1
Reply

How to disable Template Cache on routeChange in Angular 1.*?

Santosh Kumar Adidawarpu

Santosh Kumar Adidawarpu

Nov 16, 2017
121
0

    Below code to disable Template Cache on routeChange: app.run(function ($rootScope, $templateCache) {$rootScope.$on('$routeChangeStart', function (_event, _next, _current) {if (typeof (_current) !== 'undefined') {$templateCache.remove(current.templateUrl);}}); });

    Santosh Kumar Adidawarpu
    November 16, 2017
    0