Easily embed Twitter widgets into your Angular application! No more having to kludge together a Twitter script loader, or manage embed state on visibility change.
ngx-tweet is sourced from arusahni's ngTweet app (https://github.com/arusahni/ngtweet).
npm install ngx-tweet --save
or yarn add ngx-tweet
Import NgxTweetModule
in your module:
import { NgxTweetModule } from "ngx-tweet";
@NgModule({
[...]
imports: [
NgxTweetModule
]
[...]
})
Finally, use ngx-tweet
component in your template:
<ngx-tweet tweetId="921670221710032896"></ngx-tweet>
The tweetId
is the number at the end of the tweet url that you want to embed, for example,
https://twitter.com/nixcraft/status/921670221710032896
And voila! Happy Tweeting!