Currently, I am using AngularJs for the front end and Loopback for my backend API. One of the features I'm looking to incorporate into my web app is hashtag(#) functionality. The string I am working with is $scope.postText. I am looking for a way to separate all words that start with '#'. Any suggestions on the best approach to achieve this would be greatly appreciated. Additionally, it would be helpful to have these hashtagged words highlighted as they are typed (similar to Facebook). If you have any knowledge on how to accomplish this, please share.
Thank you in advance!