angular.js - angular $watch input box space does not trigger events
仅有的幸福
仅有的幸福 2017-06-12 09:23:54
0
1
801

In the watch input box in angularjs, when a space is entered in the input box, the event is not triggered. Is there any solution?
(angular1.x)

仅有的幸福
仅有的幸福

reply all(1)
扔个三星炸死你

You can set ng-trim="false" for the input so that the watch value will not call the trim method.

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