From 0ccd96e8b5a40cb52a4f536c0b4e080c0948b66b Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 20 Mar 2017 13:06:07 -0400 Subject: [PATCH] fix(item-sliding): add forwardRef for item options --- src/components/item/item-sliding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/item/item-sliding.ts b/src/components/item/item-sliding.ts index d7a12796cc..d9624137b3 100644 --- a/src/components/item/item-sliding.ts +++ b/src/components/item/item-sliding.ts @@ -1,4 +1,4 @@ -import { ChangeDetectionStrategy, Component, ContentChildren, ContentChild, ElementRef, EventEmitter, Optional, Output, QueryList, Renderer, ViewEncapsulation, NgZone } from '@angular/core'; +import { ChangeDetectionStrategy, Component, ContentChildren, ContentChild, ElementRef, EventEmitter, forwardRef, Optional, Output, QueryList, Renderer, ViewEncapsulation, NgZone } from '@angular/core'; import { swipeShouldReset, assert } from '../../util/util'; import { Item } from './item'; @@ -172,7 +172,7 @@ export class ItemSliding { this.setElementClass('item-wrapper', true); } - @ContentChildren(ItemOptions) + @ContentChildren(forwardRef(() => ItemOptions)) set _itemOptions(itemOptions: QueryList) { let sides = 0;