src/app/component/github-button/github-button.component.ts
selector | stbui-github-button |
styleUrls | ./github-button.component.scss |
templateUrl | ./github-button.component.html |
Properties |
|
Methods |
Inputs |
Accessors |
constructor(http: HttpClient)
|
||||||
Parameters :
|
repo | |
Type : string
|
|
Default value : 'angular-material-app'
|
|
type | |
user | |
Type : string
|
|
Default value : 'stbui'
|
|
getGithubUrl |
getGithubUrl()
|
Returns :
{ base: string; watch: string; star: string; fork: string; issue: string; download: string; }
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
Private _type |
Readonly baseApi |
Type : string
|
Default value : 'https://api.github.com/repos'
|
Readonly baseUrl |
Type : string
|
Default value : 'https://github.com'
|
repository |
Type : object
|
Default value : {
subscribers_count: 0,
stargazers_count: 0,
forks_count: 0,
open_issues_count: 0
}
|
type | ||||
gettype()
|
||||
settype(value)
|
||||
Parameters :
Returns :
void
|
./github-button.component.scss