fix(item-sliding): add forwardRef for item options

This commit is contained in:
Brandy Carney
2017-03-20 13:06:07 -04:00
parent af16846568
commit 0ccd96e8b5

View File

@ -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<ItemOptions>) {
let sides = 0;