Skip to content

How to set date via model variable #16

@iplan72014

Description

@iplan72014

Calendar popup didn't update months while data loaded at initially.

                  <datepickerstefan  id="date2" data-ng-model="date2" language="en-ca" date-format="YYYY-MM-DD" />
                 app.controller('AppCtrl', function ($scope) {
                                $scope.date2 = "01-Jan-2015";
                    });

While click the calendar icon -> current date(August- month) gets opened in calendar popup instead of January month.[$scope.date2 = "01-Jan-2015";].

Refer stackoverflow link for details explanation: http://stackoverflow.com/questions/32071902/angular-bootstrap3-datepicker-calendar-popup-didnt-update-while-pageloading/32072413#32072413

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions