You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
If I copy paste the template's code out, everything is good. But with the template, datesfield is blank and model is being reset to today's date
Edit: it seems that this is actually the same error because in my template I am using $parent: so my date is becoming angular structure like you name it
I use View-Model-Controller for my angular project
In controller:
In model:
angular.module('ngBootstrap')
.factory('sectionModel', sectionModel);
in view:
Result
As you can see, it works fine if I use scope myDate. But the ctrl.prop.date doesn't work. So I change the 2nd input ng-model to myDate
Result
It proves that ctrl.prop.date does have the correct value. Just that if I put it in the ng-model, somehow it got reset to the today's date.
Thanks,
Tan
The text was updated successfully, but these errors were encountered: