Skip to content

Angular 2 Component for embedding a gist within an Angular site

License

Notifications You must be signed in to change notification settings

jasonhodges/ng2-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng2-gist

Angular 2 Component for embedding a gist within an Angular site

Build Status semantic-release

Code Example

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

  • Declare ng2Gist within app.module.ts
   declarations: [
     AppComponent,
     ng2Gist
   ],
   imports: [
     BrowserModule,
     FormsModule,
     HttpModule
   ],
   providers: [],
   bootstrap: [AppComponent]
 })
 export class AppModule { }
  • Use the ng2-gist component in any template files by using the ng2-gist tag along with username and gistId
<ng2-gist [gistId]="'{username}/{gistId}'"></ng2-gist>

Motivation

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

Installation

npm i --save ng2-gist

Contributors

License

MIT

About

Angular 2 Component for embedding a gist within an Angular site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published