Santosh Kumar Adidawarpu
How to disable Template Cache on routeChange in Angular 1.*?
By Santosh Kumar Adidawarpu in Angular on Nov 16 2017
  • Santosh Kumar Adidawarpu
    Nov, 2017 16

    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);}}); });

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS