V
V
Vladimir Io2015-11-16 22:23:47
Angular
Vladimir Io, 2015-11-16 22:23:47

Is that what ngTrim is for in Angular?

Hello.
I don't understand what ng-trim is for?
If it's stripping spaces at the end and beginning, then you can't get it to work.
If this is cleaning everything that does not fit the regular season, then it does not work either.
Here is the easiest option - plnkr.co/edit/r7NwcpvX3c9iw4bvfSjf?p=preview
Explain who knows.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-11-16
@vawsan

If set to false Angular will not automatically trim the input. This parameter is ignored for input[type=password] controls, which will never trim the input.
(default: true)

https://docs.angularjs.org/api/ng/input/input%5Btext%5D
is it really not clear...
plnkr.co/edit/amM6btWFyqHEku7XY76B?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question