From e3bb43cca464531610d31d7c0ffe94890f8fadf5 Mon Sep 17 00:00:00 2001 From: 100000001 <100000001@users.noreply.github.com> Date: Thu, 13 Jun 2019 14:11:18 +0200 Subject: [PATCH 1/2] Support angular 8 static query --- components/sb-item.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sb-item.ts b/components/sb-item.ts index dce52b6..89359b1 100644 --- a/components/sb-item.ts +++ b/components/sb-item.ts @@ -18,7 +18,7 @@ export class SBItem { @Input() public collapsed: boolean = true; @Output() onToggled = new EventEmitter(); - @ContentChild(SBItemBody) body: SBItemBody; + @ContentChild(SBItemBody, {static: false}) body: SBItemBody; constructor(@Inject(forwardRef(() => SqueezeBox)) squeezebox: SqueezeBox) { this.squeezebox = squeezebox; From 73bd329f75d924acf71d3e975d4ddd24e45aa81d Mon Sep 17 00:00:00 2001 From: 100000001 <100000001@users.noreply.github.com> Date: Thu, 13 Jun 2019 14:12:08 +0200 Subject: [PATCH 2/2] Support Angular 8 --- components/sb-item-body.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sb-item-body.ts b/components/sb-item-body.ts index 396e6a8..856cd38 100644 --- a/components/sb-item-body.ts +++ b/components/sb-item-body.ts @@ -11,7 +11,7 @@ import {Component, ElementRef, Renderer, ViewChild} from '@angular/core'; }) export class SBItemBody { - @ViewChild('body') bodyEl: ElementRef; + @ViewChild('body', {static: false}) bodyEl: ElementRef; constructor(private renderer: Renderer) {}