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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 24, 2018, 8:25 PM EDT
Please refer the above javascript example you can apply this same way in angular
Jaish MathewsRank #225 · 11K reputationPosted Jul 24, 2018, 10:30 PM EDT
Bhairab DuttRank #799 · 2.9K reputationPosted Jul 24, 2018, 10:38 PM EDT
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 .
Shashikant Devani50 reputationPosted Jul 25, 2018, 2:36 AM EDT