-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
- ng-alain version: 1.1.4
- Angular version: 6.0.9
【必填项】重现链接,Reproduction link
https://ng-alain.com/components/exception
The "exception" documentation is not correct. The following example does not work:
import { Component } from '@angular/core';
@Component({
selector: 'components-exception-403',
template: `
<exception type="403">
<button nz-button [nzType]="'primary'">回到首页</button>
<button nz-button>查看详情</button>
</exception>`
})
export class ComponentsException403Component {
}It should be updated to something similar to
import { Component } from '@angular/core';
@Component({
selector: 'components-exception-403',
template: `
<exception type="403">
<ng-template #actions>
<button nz-button [nzType]="'primary'">回到首页</button>
<button nz-button>查看详情</button>
</ng-template>
</exception>`
})
export class ComponentsException403Component {
}Thanks.