Reputation: 301
I try make app with include ngCookies. I'm new to use angular-cookies and when i install and include material in index. In crome console have some error like this
Uncaught TypeError: angular.module(...).info is not a function angular-cookies.js:25
I just input some material like this
<script src="lib/angular/angular.js"></script>
<script src="lib/angular-cookies/angular-cookies.js"></script>
I don't know to fix it please help me solve this problem
Upvotes: 0
Views: 871
Reputation: 301
just dalete .info({ angularVersion: '1.6.4' }).
in angular-cookies.js line 25
Upvotes: 0
Reputation: 207
You need to update angular file and angular-cookies file to the same version. The .info fn is defined in angular.js itself. It's always been the case that the core file and the module files have to have the same version.
Upvotes: 1