Skip to content

I cant update my moment picker from controller side #297

@yunusemreuveyik

Description

@yunusemreuveyik

I am trying to update the moment picker value from controller by updating the model but its not working. here is my codes:

<div class="input-group"
                                         moment-picker="model.checkInDate"
                                         min-date="model.minCheckInDate"
                                         change="changeDate()"
                                         locale="{{$root.language}}"
                                         format="LL">

                                        <input class="form-control"
                                               placeholder="Select a date"
                                               ng-model="model.checkInDate"
                                               ng-model-options="{ updateOn: 'blur' }"
                                               autocomplete="off">
                                    </div>

js:

$scope.model.checkInDate = (some valid date)

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