"错误:[$ injector:unpr]未知提供者:$ cookiesProvider< - $ cookies< - PageTopCtrl

时间:2017-08-20 23:36:40

标签: angularjs

我正在使用blur-admin主题并开发我的项目。我启用了一个通过 webgate 的身份验证机制,并通过cookie获取用户名到应用程序。我们验证用户名,然后登录应用程序并在仪表板页面顶部的右侧显示用户名。

不知何故,cookie没有被捕获到代码中。请告诉我在向项目添加 $http.get("data/tempsgammes.json").then(function(response){ alert('first'); // <--- This will be called first .then(function(res){ alert('third!'); // <--- This will be called third }); alert('second!'); // <--- This will be called second 功能时我在哪里出错。

运行应用程序后,我面临着粘贴在此电子邮件主题中的错误。

请帮助。

0 个答案:

没有答案