Skip to content

Commit

Permalink
fix(toast): adds static: true for Angular 8 query compatibility (#3250
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Benoit Charbonnier committed Jun 24, 2019
1 parent bd1e9fb commit e682ee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/toast/toast.ts
Expand Up @@ -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.
Expand Down Expand Up @@ -83,7 +84,7 @@ export class NgbToast implements AfterContentInit,
* A template like `<ng-template ngbToastHeader></ng-template>` can be
* used in the projected content to allow markup usage.
*/
@ContentChild(NgbToastHeader, {read: TemplateRef}) contentHeaderTpl: TemplateRef<any>| null = null;
@ContentChild(NgbToastHeader, {read: TemplateRef, static: true}) contentHeaderTpl: TemplateRef<any>| null = null;

/**
* An event fired immediately when toast's `hide()` method has been called.
Expand Down

0 comments on commit e682ee3

Please sign in to comment.