【发布时间】:2016-09-30 09:46:13
【问题描述】:
我在我的 HTML 中使用 angular2 内置管道百分比
<input class="ibox1 rightalign" type="text" [ngModel]="_note.StudentPercent| percent:'.5-5'" ngControl="StudentPercent" pattern="^[0-9]\d*(\.\d+)?$" #StudentPercent="ngForm">
它的工作和向输入框显示正确的数据,但是当我更改字段管道的值时不起作用。
如何解决?
【问题讨论】:
标签: html angular typescript pipe