Can angular’s ng-model put filters?
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~
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~