Embedded Timelines and TypeScript Issues

embeddedtimeline

#1

Good Afternoon,

I just added an embedded timeline into my website on my home page. It works fantastically well, however when switching to another page and going back to the home page it just shows the link. The only caveat to the issue is that I am using Angular 2 and TypeScript. I have not found anything that helps me with this problem as most everything is for just standard js files. I have the import in my index.html and the timeline is in home.component.html.

Thanks for any help!


#2

Twitter’s widgets JavaScript scans the DOM when first executed to find potential elements for enhancement. If Twitter’s widgets JavaScript has already loaded on the page you may need to call twttr.widgets.load() to trigger a new scan. You can pass an element for just the loaded home.component.html parent to limit the scan.
https://dev.twitter.com/web/javascript/initialization


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.