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): generic template #63

Closed gilhanan closed 7 years ago

gilhanan commented 7 years ago

Alternative for PR #64

Using that code:

<ng2-toasty>
  <template toastyTemplate="title" let-toast>
    HTML title: <span style="background-color: #1EAEDB; color: #E1CB00;">{{toast.title}}</span>
  </template>
  <template toastyTemplate="message" let-toast>
    HTML message: <span style="background-color: #ff0039; color: #00e104;">{{toast.msg}}</span>
  </template>
</ng2-toasty>

Gives the result: toasty-html-content-demo

I would happy to review and discussing

gilhanan commented 7 years ago

Close by merging https://github.com/akserg/ng2-toasty/pull/65