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

add missing html attribute to interface description of toast #24

Closed
wants to merge 1 commit into from

Conversation

brosenberger
Copy link

the html attribute is used within toast.component.ts L15, but never declared and results within an compile error when using the TrustedHtml option with a typed Toast-Object

@Stabzs
Copy link
Owner

Stabzs commented May 31, 2016

This is indeed a bug (good catch and thanks) but the resolution is both incomplete and (probably) incorrect.

The argument being used should actually be the toaster.body property. Since the type is any, it would be the logical choice and removes the need for yet another optional property.

Also, please note that since this is fixing a use case that is currently untested (since code coverage can't inspect cases in templates, ugh), that this pull request should have been accompanied by additional tests that test this scenario.

Thank you for bringing this to my attention. I'll fix it shortly.

@Stabzs Stabzs closed this May 31, 2016
Stabzs added a commit that referenced this pull request May 31, 2016
The BodyOutputType.TrustedHtml option was trying to improperly render
the toast.html property of the toast.  This has been updated to render
the body property as the inner html of the new toast instance and
addresses #24.

Body Output Type documentation added to the README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants