1.0.0 • Published 7 years ago
ng2-gist v1.0.0
ng2-gist
Angular 2 Component for embedding a gist within an Angular site
Code Example
In order to use the component in your Angular 2 project after installation, follow these steps:
Declare
ng2Gist
within app.module.tsdeclarations: [ AppComponent, ng2Gist ], imports: [ BrowserModule, FormsModule, HttpModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { }
Use the
ng2-gist
component in any template files by using theng2-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
1.0.0
7 years ago
0.0.0-development
7 years ago