akserg / ng2-toasty

Angular2 Toasty component shows growl-style alerts and messages for your app.
MIT License
283 stars 102 forks source link

feat(html-content): innerHTML property #65

Closed gilhanan closed 7 years ago

gilhanan commented 7 years ago

Alternative for pull requests #63 and #64, and admittedly this one is my favorite implementation.

Using that code:

options = {
 title: 'HTML title: <span style="background-color: #1EAEDB; color: #E1CB00;">Toast It!</span>',
 msg: 'HTML message: <span style="background-color: #FF0039; color: #00E104;">Mmmm, tasties...</span>'
};

this.toastyService.default(toastOptions);

Gives the result: toasty-html-content-demo

I would happy to review and discussing

codedoge commented 7 years ago

Nice, any chance to have this pulled in master?

akserg commented 7 years ago

Hi Gil,

That solution much better than in pull requests #63 and #64.

Thank you for your valuable input.

gilhanan commented 7 years ago

@akserg thanks :)