GithubHelp home page GithubHelp logo

angloux / ngx-gist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasonhodges/ngx-gist

0.0 1.0 0.0 84 KB

Angular 4 Component for embedding a gist within an Angular site

License: MIT License

JavaScript 18.51% TypeScript 81.49%

ngx-gist's Introduction

ngx-gist

Build Status semantic-release Commitizen friendly

Angular 4 Component for embedding a gist within an Angular site

Code Example

In order to use the component in your Angular 4 project after installation, follow these steps:

  • Declare NgxGistModule within app.module.ts
import { NgxGistModule } from 'ngx-gist/dist/ngx-gist.module';
 @NgModule({
   declarations: [
     AppComponent
   ],
   imports: [
     BrowserModule,
     FormsModule,
     HttpModule,
     NgxGistModule
   ],
   providers: [],
   bootstrap: [AppComponent]
 })
 export class AppModule { }
  • Use the ngx-gist component in any template files by using the ngx-gist tag along with username and gistId
<ngx-gist [gistId]="'{username}/{gistId}'"></ngx-gist>
  • Updated Support For Particular File in a gist
<ngx-gist [gistId]="'{username}/{gistId}'" [file] = "'<name of the file in gist>'"></ngx-gist>

the file parameter is a optional paramater

Motivation

This project was initiated after a search for an Angular 4 component of its kind returned no results.

Installation

npm i --save ngx-gist

Contributors


Jason Hodges

๐Ÿ“–
Rahul Singh

๐Ÿ“–

License

MIT

ngx-gist's People

Contributors

jasonhodges avatar rahulrsingh09 avatar

Watchers

James Cloos 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.