ng-github-button
v18.0.0
Published
Unofficial GitHub buttons in Angular.
Downloads
140
Maintainers
Readme
ng-github-button
Unofficial GitHub buttons in Angular.
Demo
Usage
1. Install
npm install ng-github-button --save
import GithubButtonModule
。
import { GithubButtonModule } from 'ng-github-button';
@NgModule({
imports: [ BrowserModule, GithubButtonModule ],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
2、Template
<github-button type="stargazers" size="large" namespace="cipchk" repo="ng-github-button"></github-button>
| Name | Type | Default | Summary |
| ------- | ------------- | ----- | ----- |
| type
| stargazers,subscribers,forks
| - | - |
| size
| default,large
| - | - |
| namespace
| string
| - | Your GitHub id or organization name. |
| repo
| string
| - | The name of your repository. |
| showZero
| boolean
| false
| Can be show zero value |
Troubleshooting
Please follow this guidelines when reporting bugs and feature requests:
- Use GitHub Issues board to report bugs and feature requests (not our email address)
- Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.
Thanks for understanding!
License
The MIT License (see the LICENSE file for the full text)