angularjs | date input not showing ng-model value

前端 未结 3 879
庸人自扰
庸人自扰 2020-12-11 02:53

date input is not showing the date until the user change it

// showing the date

{{someDate | date}}

// not showing the date. instead showi
3条回答
  •  遥遥无期
    2020-12-11 03:08

    Try converting the someDate scope variable from string to Date format and then if you use input type="date" ng-model="someDate" . This solved my problem .

提交回复
热议问题