Now ng-model has existing value fetched from server and i want this value to be show but instead it shows value from variable vm.today.
What i want is to show existing value from server (vm.obavijest.DatumPrikazivanja) if exists in input but disable picking value from picker if i want to update that value that is less than value in "today" (vm.today) variable.
I have moment picker set up like this:
Now ng-model has existing value fetched from server and i want this value to be show but instead it shows value from variable vm.today.
What i want is to show existing value from server (vm.obavijest.DatumPrikazivanja) if exists in input but disable picking value from picker if i want to update that value that is less than value in "today" (vm.today) variable.
Thanks for help.