我遇到了angular2和HTML5输入问题="日期"
如果我执行以下操作,请以我的形式提供 [(ngModel)] =" certification.issueDate" 我可以选择并保存日期,但无法显示已保存的日期
如果我在表格中执行以下操作 [value] =" certification.issueDate |日期:' YYYY-MM-DD'"
我可以显示当前保存的日期,但无法保存新日期
我读过我应该这样做 [(ngModel)] =" certification.issueDate |日期:' YYYY-MM-DD'"没有[value] =" certification.issueDate |日期:' YYYY-MM-DD'"
但这会导致以下错误:
compiler.es5.js:12932未捕获错误:模板解析错误:
分析器错误:[certification.issueDate |]中第27列的动作表达式中没有管道日期:&ng; yyyy-MM-dd' = $ event]在ng:///AppModule/CertificationComponent.html@56:67(">
发布日期:] [(ngModel)] =" certification.issueDate |日期:' YYYY-MM-DD'"
类="形状控制" name =" issuedDate""):ng:///AppModule/CertificationComponent.html@56:67
不确定我错过了什么......我确信它很简单。但是对于Angular我来说是新手,我现在卡住了