I'm fetching my timeline tweets from Twitter API(1.1) and here is the REST API I'm using https://dev.twitter.com/rest/reference/get/statuses/home_timeline
*Am using:* Node.js Angular.js Twitter APIs - v1.1 I want to hyper link the @username mentions #hashtag and other links in the tweet. So I searched for a package from npm which does this job. This one was even listed on Twitter document, so I went with it https://github.com/twitter/twitter-text/tree/master/js (npm install twitter-text -save) My problem is, Twitter API ( get: statuses/home_timeline ) outputs a lot of data and I have them displayed on my HTML page - I'm using Angularjs I want to know, is there any way I can use tweet-text to convert these tweets to have proper anchor tags. I know tweet-text has some methods that I can use to convert the tweets. But my problem is - tweets are already displayed on the webpage, now, is there a way to change it on the flay and include proper anchoring? *1. Client Side: *I tried to write a filter and it entered infinite loop! *2. Server Side:* Inside a route, I even iterated through the object I got from Twitter API ( get: statuses/home_timeline ) fetched only the text (tweets), and then used twitter-text's method to convert the text and then saved it back in the same position of the object, returned it back! This slowed down the entire process. It worked though, but the webpage keeps on loading even after the tweets have been displayed on the webpage via angular. But am sure this is not the right way to do it. I hope someone can help me by providing a directive or something like that. Some conditions to keep in mind: 1. Not all tweets generated will have text field. 2. There can be multiple links inside a tweet ..etc Hope to get some help ..thanks a lot :) -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
