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

NzPageHeader: nzBack default implementation #3421

Closed
wbison opened this issue May 7, 2019 · 0 comments
Closed

NzPageHeader: nzBack default implementation #3421

wbison opened this issue May 7, 2019 · 0 comments
Assignees

Comments

@wbison
Copy link

wbison commented May 7, 2019

What problem does this feature solve?

There is only one way to go 'back' - why force users to write code for that.

What does the proposed API look like?

Clicking the back icon in NzPageHeader component doesn't do anything. I have to write

back() {
    this.location.back();
}

and

<nz-page-header nzBackIcon (nzBack)='back()'>

to make it work. Could this behaviour be the default?

Note:
the docs on https://ng.ant.design/components/page-header/en specify [nzBack]
but this should be (nzBack) I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants