Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cipchk/ng-github-button
Unofficial GitHub buttons in Angular.
https://github.com/cipchk/ng-github-button
angular angular-components angular6 antd delon github-buttons ng-alain ng-zorro
Last synced: 16 days ago
JSON representation
Unofficial GitHub buttons in Angular.
- Host: GitHub
- URL: https://github.com/cipchk/ng-github-button
- Owner: cipchk
- License: mit
- Created: 2018-04-16T10:24:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-15T11:23:14.000Z (5 months ago)
- Last Synced: 2024-10-19T11:30:10.532Z (25 days ago)
- Topics: angular, angular-components, angular6, antd, delon, github-buttons, ng-alain, ng-zorro
- Language: HTML
- Homepage: https://cipchk.github.io/ng-github-button/
- Size: 1.89 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ng-github-button
Unofficial GitHub buttons in Angular.
[![NPM version](https://img.shields.io/npm/v/ng-github-button.svg)](https://www.npmjs.com/package/ng-github-button)
![Ci](https://github.com/cipchk/ng-github-button/workflows/Ci/badge.svg)
[![codecov](https://codecov.io/github/cipchk/ng-github-button/graph/badge.svg?token=7iMHv5pw5J)](https://codecov.io/github/cipchk/ng-github-button)## Demo
[Live Demo](https://cipchk.github.io/ng-github-button/) or [stackblitz](https://stackblitz.com/edit/ng-github-button)
## Usage
### 1. Install
```
npm install ng-github-button --save
```import `GithubButtonModule`。
```typescript
import { GithubButtonModule } from 'ng-github-button';@NgModule({
imports: [ BrowserModule, GithubButtonModule ],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
```### 2、Template
```html
```
| 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:
1. Use [GitHub Issues](https://github.com/cipchk/ng-github-button/issues) board to report bugs and feature requests (not our email address)
2. 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](https://github.com/cipchk/ng-github-button/blob/master/LICENSE) file for the full text)