angularjsangular-cookies

Angularjs: Angularjs ngCookie.js is giving some error


i tried to inject angular-cookies.js in my HTML file but seems it has some type error or to make it accurate an "error" in the js file. The error showing in my log is "TypeError: angular.module(...).info is not a function" and the js is from there website("https://angularjs.org/"). is anyone have solution for this? thank you


Solution

  • i had the same issue and i solved it by deleting the line from the angular-cookies.js file that gives you the error, display the js file in the browser console to identify the line and just delete it. I hope it helps.