GithubHelp home page GithubHelp logo

sanchezcarlosjr / ngx-tweet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrael/ngx-tweet

0.0 1.0 0.0 115 KB

Angular component for displaying a Twitter tweet

License: MIT License

TypeScript 83.65% JavaScript 13.73% HTML 2.62%

ngx-tweet's Introduction

ngx-tweet

npm version npm downloads GitHub issues Dependencies Dev Dependencies Peer Dependencies Known Vulnerabilities GitHub license

NPM

Angular Tweet Component

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).

Installation

npm install ngx-tweet --save or yarn add ngx-tweet

Usage

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!

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

License

The MIT License (see the LICENSE file for the full text)

ngx-tweet's People

Contributors

adrael avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.