function ngView($route, $templateCache, $routeParams) {
        return {
            restrict: 'A',
            priority: -500,
            link: function($scope, $element) {
                $templateCache.remove($route.current.loadedTemplateUrl);
                $scope.mainStatus.pageParams = $routeParams;
            }
        };
    }
/**
     * Clear ng-view template cache
     */
Clear ng-view template cache
Clear ng - view template cache
function ngView($route, $templateCache, $routeParams) {
        return {
            restrict: 'A',
            priority: -500,
            link: function($scope, $element) {
                $templateCache.remove($route.current.loadedTemplateUrl);
                $scope.mainStatus.pageParams = $routeParams;
            }
        };
    }
function ngView ( $route , $templateCache , $routeParams ) { return { restrict : 'A' , priority : - 500 , link : function ( $scope , $element ) { $templateCache . remove ( $route . current . loadedTemplateUrl ) ; $scope . mainStatus . pageParams = $routeParams ; } } ; }
Clear ng-view template cache
Clear ng - view template cache