AngularJS $httpProvider undefined

后端 未结 2 1976
北荒
北荒 2021-01-12 03:58

I\'am trying to use a basic sample of interceptors, so I stared with a little piece of code but without success:

var app = angular.module(\'app\',[]).
  con         


        
2条回答
  •  失恋的感觉
    2021-01-12 04:24

    $httpProvider.interceptors array was added in AngularJS v.1.1.4 (I believe). You're most probably using some older version of AngularJS.

    Btw, that error says $httpProvider.interceptors is not defined, not $httpProvider as your title implies.

提交回复
热议问题