diff --git a/src/toast/toast.ts b/src/toast/toast.ts index 427e9e8051..4ba4c00e4b 100644 --- a/src/toast/toast.ts +++ b/src/toast/toast.ts @@ -15,6 +15,7 @@ import { import {NgbToastConfig} from './toast-config'; + /** * This directive allows the usage of HTML markup or other directives * inside of the toast's header. @@ -83,7 +84,7 @@ export class NgbToast implements AfterContentInit, * A template like `` can be * used in the projected content to allow markup usage. */ - @ContentChild(NgbToastHeader, {read: TemplateRef}) contentHeaderTpl: TemplateRef| null = null; + @ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef| null = null; /** * An event fired immediately when toast's `hide()` method has been called.