-
Notifications
You must be signed in to change notification settings - Fork 216
self.date is undefined #166
Comments
Sale versions, same issue... |
Same issue |
I believe the issue is a breaking change angular 1.6 made: All the logic that is currently in the constructor for the directive controllers needs to be moved into an $onInit function. |
#168 Fixes |
same here |
I was able to temporary workarround installing the fork : bower install -f --save https://github.com/andrea-vega/mdPickers.git#7c8f32fac12a01ad66e6728b603dcf8c7e86c0ce @andrea-vega it worked like a charm. Thanks so much :) |
@felipegouveiae great! Glad to help :) |
Great Thank you very much. |
Does anyone know if this fixes the time picker, too? I've got the following error:
Line 692 is: Edit: It appears this is all the same thing. Hoping for an accepted pull request! |
On mdPickers.js line 241
self.date.daysInMonth()
is throwing an error.It seems like
CalendarCtrl
is not getting the values from datepicker (which is the alias of DatePickerCtrl).I could make it work by adding
self.date = $scope.$parent.datepicker.date
inCalendarCtrl
.versions:
angular 1.6.0
angular-material 1.1.0
mdPickers 0.7.5
moment 2.17.1
The text was updated successfully, but these errors were encountered: