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

nzData not passed to template in NzNotificationService #8997

Open
timonmasberg opened this issue Jan 31, 2025 · 5 comments
Open

nzData not passed to template in NzNotificationService #8997

timonmasberg opened this issue Jan 31, 2025 · 5 comments

Comments

@timonmasberg
Copy link

Reproduction link

https://stackblitz.com/edit/stackblitz-starters-8bbttrvb?file=src%2Fmain.ts

Steps to reproduce

Click on show, no data is shown

What is expected?

It should pass nzData to the template variable.

What is actually happening?

It is not being passed, data stays undefined

Environment Info
ng-zorro-antd 19.0.0
Browser Chrome
@timonmasberg
Copy link
Author

this probably has to be an ng-container

@swseverance
Copy link
Contributor

@timonmasberg you can call service.template() like this: https://stackblitz.com/edit/stackblitz-starters-vtfbxkrm?file=src%2Fmain.ts

the downside is that you no longer see the error icon in the notification by default

@timonmasberg
Copy link
Author

@timonmasberg you can call service.template() like this: https://stackblitz.com/edit/stackblitz-starters-vtfbxkrm?file=src%2Fmain.ts

the downside is that you no longer see the error icon in the notification by default

Thanks for the workaround, still, the underlying issue remains.

@Nicoss54
Copy link
Collaborator

Nicoss54 commented Feb 6, 2025

@HyperLife1119 @simplejason i will work on this :)

@Nicoss54
Copy link
Collaborator

Nicoss54 commented Feb 7, 2025

@HyperLife1119 @simplejason it works, working in strict typings in progress :)

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

5 participants