If you have recently updated restangular through bower it will have installed the latest lodash - the new 4.0. However this is a problem as restangular/angular now throws the error - "_.contains() is not a function."
How do you solve?
If you have recently updated restangular through bower it will have installed the latest lodash - the new 4.0. However this is a problem as restangular/angular now throws the error - "_.contains() is not a function."
How do you solve?
If you have not specified the entry for
lodash
explicitly and this gets installs as a dependency ofrestangular
, you can uninstall both of them and reinstalllodash (3.10.1)
to fix the issue.This way you would not need an entry into the
bower.json
file.Source: https://github.com/mgonto/restangular/issues/1294
Couldn't you put this in app.js
The solution is very simple - you need to tell restangular to use a lower version than the newest lodash - 3.10.0
Through bower.json
https://github.com/mgonto/restangular/issues/1298