Angular 4 Component for embedding a gist within an Angular site
In order to use the component in your Angular 4 project after installation, follow these steps:
- Declare
ngGist
within app.module.ts
declarations: [
AppComponent,
ngGist
],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- Use the
ng-gist
component in any template files by using theng-gist
tag along with username and gistId
<ng-gist [gistId]="'{username}/{gistId}'"></ng-gist>
This project was initiated after a search for an Angular 4 component of its kind returned no results.
npm i --save ng-gist
MIT