Skip to content

Commit

Permalink
keep card loading demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqi73 committed Aug 3, 2018
1 parent b002f82 commit 39e6d3b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 30 deletions.
30 changes: 0 additions & 30 deletions components/card/demo/loading-skeleton.ts

This file was deleted.

File renamed without changes.
17 changes: 17 additions & 0 deletions components/card/demo/loading.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component } from '@angular/core';

@Component({
selector: 'nz-demo-card-loading',
template: `
<nz-card [nzLoading]="loading" nzTitle="Card title">
Whatever content
</nz-card>
<button nz-button style="margin-top: 16px;" (click)="toggleLoading()">Toggle loading</button>
`
})
export class NzDemoCardLoadingComponent {
loading = true;
toggleLoading(): void {
this.loading = !this.loading;
}
}

0 comments on commit 39e6d3b

Please sign in to comment.