AngularJS: Should I use a filter to convert integer values into percentages?

后端 未结 2 2027
谎友^
谎友^ 2021-02-20 02:20

I need to collect a rate of change - in percentages - from my application\'s users. Here is the text input I am using:

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 03:00

    Well, you just did it the absolute right way with the ctrl.$parser and ctrl.$formatter You just can leave out the $filter thing, its absulotuly not needed there. Just check it out they don't use the filter there, too.

提交回复
热议问题