diff --git a/ionic/components/item/item-group.ts b/ionic/components/item/item-group.ts index 010c49c8f5..29213a26dd 100644 --- a/ionic/components/item/item-group.ts +++ b/ionic/components/item/item-group.ts @@ -38,7 +38,7 @@ export class ItemGroupTitle { * TODO * @param {ElementRef} elementRef TODO */ - constructor(elementRef: ElementRef, config: IonicConfig, @Host() content: Content) { + constructor(elementRef: ElementRef, config: IonicConfig, @Optional() @Host() content: Content) { this.isSticky = true; this.content = content; this.ele = elementRef.nativeElement; @@ -46,6 +46,7 @@ export class ItemGroupTitle { } onInit() { + if(!this.content) { return; } this.scrollContent = this.content.elementRef.nativeElement.children[0];