Skip to content

Angular 4 Component for embedding a gist within an Angular site

License

Notifications You must be signed in to change notification settings

jasonhodges/ngx-gist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ngxGist within app.module.ts
   declarations: [
     AppComponent,
     ngxGist
   ],
   imports: [
     BrowserModule,
     FormsModule,
     HttpModule
   ],
   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>

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

License

MIT