var app = angular.module('app',[]). config(['$routeProvider','$locationProvider',function($routeProvider,$location) { $routeProvider. when('/home',{templateUrl: 'home.html',controller: homeCtrl}). when('/login',{templateUrl: 'login.html',controller: loginController}). otherwise({redirectTo : '/home' }); }]); app.config(function ($httpProvider) { $httpProvider.interceptors.push('httpRequestInterceptor'); });
Uncaught TypeError: Cannot call method 'push' of undefined from app
任何的想法?
谢谢