-
Notifications
You must be signed in to change notification settings - Fork 417
lodash dependency is not satisfied #174
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
Comments
The demo is broken as well, with the same error: https://rawgit.com/g00fy-/angular-datepicker/master/app/index.html |
created pull request fixing this issue: |
Sorry, guys, i fucked up. Created pull request with a fix https://github.com/g00fy-/angular-datepicker/pull/176 |
Issue is still present in version 1.0.20 Line 51 breaks it. scope.callbackOnSetDate = attrs.onSetDate ? _.get(scope.$parent, attrs.onSetDate) : undefined; That issue is fixed and tested in #175, using scope.callbackOnSetDate = scope.$parent[attrs.onSetDate] + some condition handling |
Check out 1.0.21 |
@keenondrums p.s. I'm not an Angular guru, just trying to understand how to make it work, since libraries as 'lodash' or 'underscore' would be extremely useful... but it looks to me as we would try to inject jQuery... which is not a way. |
https://github.com/g00fy-/angular-datepicker/pull/181 |
+1 I'm getting "_ is not defined" with the on-set-date attribute |
I changed line 51 to
And the problem is fixed I was going to make a pull request but 1.0.22 also solves this: https://github.com/keenondrums/angular-datepicker/blob/75e51db51930229a7bd98c66d3c0efde5dd64d6c/dist/angular-datepicker.js |
version: 1.0.19
Latest update is relying on loads.
In case when loads is not imported somewhere else it breaks.
Below is error message:
Unknown provider: lodashProvider <- lodash <- datePickerDirective
Suggestion:
instead of _.get(scope.$parent, attrs.onSetDate) : undefined, we might use element.attr('onSetDate', undefined)
The text was updated successfully, but these errors were encountered: