ANGULAR 5
How to trim the extra spaces in texxtarea field in angular 5 ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shashikant DevaniPosted Jul 25, 2018, 6:36 AM
Bhairab DuttPosted Jul 25, 2018, 2:38 AM
Yes , you can use the below .
You have another option according to npm angular 4+ .
Please have a look the below link.
https://www.npmjs.com/package/ng2-trim-directive
https://anein.github.io/angular2-trim-directive/
Hope its helps to you .
Thanks .
Jaish MathewsPosted Jul 25, 2018, 2:30 AM
Jenith ThakkarPosted Jul 25, 2018, 12:25 AM
Please refer the above javascript example you can apply this same way in angular