2018年12月30日

inpu控件接受pipe的处理结果

摘要: input控件绑定的变量,要接受用户的输入值,一般只要使用 [(ngModel)] 就可以。 但是,pipe处理结果如何反映到变量里去呢?不知道吧?嘿嘿 这样就可以了 : <input type="text" [ngModel]="testText | test-pipe" (ngModelChan 阅读全文

posted @ 2018-12-30 10:51 至柔 阅读(97) 评论(0) 推荐(0)

导航