Skip to content

Commit

Permalink
fix(item-sliding): add forwardRef for item options
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Mar 20, 2017
1 parent af16846 commit 0ccd96e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/item/item-sliding.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 0ccd96e

Please sign in to comment.