ng2-trim-directive
The directive trims whitespaces from the end of an input text value.
Usage
- Install
ng2-trim-directive
.
npm i ng2-trim-directive
- Import
ng2-trim-directive
to your Angular module.
;
[Deprecated] 2. Add the directive to your module 'declarations' section.
- Add the "trim" attribute to a text input element.
or with an option: trim value only on the blur event.
Good luck.