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?
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
"lodash": "~3.10.0"
https://github.com/mgonto/restangular/issues/1298
Couldn't you put this in app.js
// If Restangular ever updates to lodash 4.0 remove this.
_.contains = _.includes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With