这是indexloc提供的服务,不要输入任何密码
Skip to content

Exception documentation #658

@masonlr

Description

@masonlr
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions