angular.js - Can filters be placed in angular's ng-model?
世界只因有你
世界只因有你 2017-05-15 17:06:52
0
2
622

Can angular’s ​​ng-model put filters?

世界只因有你
世界只因有你

reply all(2)
某草草

If it is the filter that comes with angular, it is ok.
I tried to write a custom filter, but it didn’t work. Sorry.

给我你的怀抱

You can use the command require : ngModel
and then make some settings on the displayed value by setting $viewValue.

For example, if the input ngModel is saved as date(), it needs to be displayed as HH:mm. This is the case. You can solve it by the above method~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template