Skip to content

Custom Template didn't show dismiss button #218

@th3conc3pt3ur

Description

@th3conc3pt3ur

Hi there,
I give a try to this lib and i'm pretty happy with it ! But i've a little trouble to customize it.

I use a custom template for angular-notifier for adding icon.
When i'm using builtin template i got the dismiss button , but when a use my custom template this button disappears
Custom template :
image

Builtin :
image

My custom template :

<ng-template #customTemplate let-notification="notification">
    <div>
        <fa-icon *ngIf="notification.type == 'error'" [icon]="faExclamationTriangle"></fa-icon> {{ notification.message }}
    </div>
</ng-template>

Should i add this button manually ? if yes how ?
Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionIndicates that this issue / PR needs to be discussed in detail before further steps can be takentype: bugIndicates an unintended behaviour, unexpected problem, crashtype: featureIndicates a feature or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions