-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng-lodash with restangular #1303
Comments
Did anyone got a chance to look at this? |
restangular uses lodash by default, but it uses lodash 3.10 and not the latest one. Latest version of lodash has changed around a few things such as _.contains is now _.includes and has other things applied such as _.slice etc. I feel like restangular is discontinued somehow the repo hasn't been updated since June. btw here is restangulars bower file under dependencies you can clearly see that restangular requires lodash in order to go ahead. |
+1 Restangular should specify |
My question is not about the latest issue that we are facing because of lodash upgrade to 4.0.0. |
@dalgard lodash is specified in the package.json: https://github.com/mgonto/restangular/blob/master/package.json#L32 |
@steel119 I don't know how exactly ngLodash would work with Restangular. Restangular references Lodash directly on |
If there is a specific need for a particular version of lodash then the package.json file should have that expected version in the file. ALSO (important)
right now - requiring restangular just generates the following error:
|
Like this?
Like this? You might be using an older version of Restangular. There are a couple commits to master that aren't in a release that fix this. See also #1397. Try using the version of Restangular on master for right now until 1.5.3 is released. |
Should not restangular have lodash injected as a factory or such? But it will break due to restangulars dep on lodash "$window._" Any ways to fix that? |
Hi,
Is it possible to use restangular with ngLodash. I tried using it but its giving me an error?
Uncaught Error: [$injector:modulerr]
Thanks!!
The text was updated successfully, but these errors were encountered: