I'm getting following error on using fullDate filter inside my html:
Error: [ngModel:nonassign] Expression 'publisherForm.dt | date:'fullDate'' is non-assignable. Element:
Here is my jade code:
datepicker.well.well-sm(ng-model="publisherForm.dt", show-weeks="false", min-date="minDate")
input.form-control(type="text", ng-model=" publisherForm.dt | date:'fullDate' ", readonly='')
what I'm trying is show the selected date from ui-datepicker to user in another input field. Since I want to show only date, I'm using fullDate filter but in console I'm getting above mentioned error.
Any idea what can be the possible reason ?
ng-model. it's expression has to resolve to a scope variable. Will need to create directive to parse the $viewModel