From f07ea3149bbbd2c8a074735e3829f2518b39f506 Mon Sep 17 00:00:00 2001 From: tomstolarczuk <49680413+tomstolarczuk@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:16:23 +0200 Subject: [PATCH] fix(player): add descendants option in contentchildren required in new angular versions --- .../core/src/lib/components/vg-player/vg-player.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ngx-videogular/core/src/lib/components/vg-player/vg-player.component.ts b/libs/ngx-videogular/core/src/lib/components/vg-player/vg-player.component.ts index c87a587..cd828e3 100644 --- a/libs/ngx-videogular/core/src/lib/components/vg-player/vg-player.component.ts +++ b/libs/ngx-videogular/core/src/lib/components/vg-player/vg-player.component.ts @@ -55,7 +55,7 @@ export class VgPlayerComponent implements AfterContentInit, OnDestroy { @Output() onPlayerReady: EventEmitter = new EventEmitter(); @Output() onMediaReady: EventEmitter = new EventEmitter(); - @ContentChildren(VgMediaDirective) medias: QueryList; + @ContentChildren(VgMediaDirective, { descendants: true }) medias: QueryList; subscriptions: Subscription[] = [];