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): templates by type #64

Closed gilhanan closed 7 years ago

gilhanan commented 7 years ago

Alternative for PR #63

Using that code:

<ng2-toasty [position]="toastyComponentPosition">
  <template toastyTitleTemplate let-toast>
    HTML title: <span style="background-color: #1EAEDB; color: #E1CB00;">{{toast.title}}</span>
  </template>
  <template toastyMessageTemplate 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