-
Notifications
You must be signed in to change notification settings - Fork 93
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
How to pass in custom data for BodyOutputType.Component? #112
Comments
It's a little bit unclear what you're trying to do. Typically when using Component you would store the data on the component instance itself, not the toast. Does http://plnkr.co/edit/GC3c9j?p=preview help you at all? If not, can you create a plunker illustrating exactly what you are currently attempting? Thanks! |
So, in the example you have
How would I initialize So in my example I have
And then in my component
My properties are now exposed to my template via |
@phillipgreenii Thanks for the thorough explanation! No, this was not part of the API. As a result, I've expanded the |
Everything is working great; thanks for the quick response. |
You're very welcome! Thanks for the confirmation! |
I am trying to generate a custom toaster which includes custom error information. However, there doesn't seem to be any property on
Toast
that I could use to store this custom information. I tried forcing it in by casting myToast
instance toany
, but then my templates don't compile because the AOT compiler detects in my template that there is no property ofdata
onToast
. What am I missing?The text was updated successfully, but these errors were encountered: