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 e535dd0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 31 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;
}
}
2 changes: 1 addition & 1 deletion components/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ getTestBed().initTestEnvironment(
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /skeleton\.spec\.ts$/);
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);

0 comments on commit e535dd0

Please sign in to comment.