Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(module: site): update homepage #397

Merged
merged 1 commit into from
Apr 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s

## Angular Support

Now Supports Angular `^6.0.0`.
Now Supports Angular `^7.0.0`.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ title: Ant Design Mobile of Angular <div class="github-btn"><a class="gh-btn" hr

## 支持 Angular 版本

目前支持 Angular `^6.0.0` 版本。
目前支持 Angular `^7.0.0` 版本。

## 安装

Expand Down
4 changes: 2 additions & 2 deletions scripts/site/template/doc-component.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export class NzDoc{{componentName}}Component implements OnInit{
}

getStar() {
this.http.get('https://api.github.com/search/repositories?q=NG-ZORRO/ng-zorro-antd-mobile').subscribe((res: any) => {
this.starCount = res.items[0].stargazers_count;
this.http.get('https://api.github.com/repos/NG-ZORRO/ng-zorro-antd-mobile').subscribe((res: any) => {
this.starCount = res.stargazers_count;
(<HTMLElement>document.querySelector('.gh-count')).style.display = 'inline-block';
})
}
Expand Down