Ngmessages Uncaught TypeError l.module(…).info is not a function

帅比萌擦擦* 提交于 2019-12-06 03:00:37

@larslemos' answer help me find the solution to my similar problem.

I was working with '.../libs/angular.js/1.6.1/angular.min.js'
but using '.../libs/angular-messages/1.6.4/angular-messages.min.js'.

Changing to angular 1.6.4 or ngMessages 1.6.1 did solved the issue.

So basically just make sure they are the same version, no need to go to 1.5.

larslemos

I just had the same issue while coding in angular 1.6

So I had to change my angular message in bower.json to this:

    "dependencies": {
    "angular": "~1.5",
    "angular-messages": "~1.5"
    "angular-animate": "^1.6.2",
    "angular-bootstrap": "^2.5.0",
    "angular-route": "^1.6.2",
    "bootstrap": "^3.3.7",
    "lodash": "^4.17.4",
    "spin.js": "^2.3.2",
    "moment": "^2.17.1",
    "toastr": "^2.1.3",
    "jquery": "^3.1.1",
    "angular-ui-router": "^0.4.2",
    "angular-sanitize": "^1.6.3",
  },

Hope it helps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!