阅读背景:

在控制器中使用$ cookies会生成TypeError:undefined不是函数

来源:互联网 

UPDATE: ISSUE RESOLVED

Turns out I was not aware that the ngCookies was a separate service which is not part of the standard angular.js. My bower.json file was referencing angular 1.4beta but the angular-cookies was still loading 1.3. I changed that to 1.4beta and everything is working as expected.Turns out I was not aw




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: