From fa499e00c89ba127893aa3b876cc47ca22912fdc Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 8 Oct 2015 16:34:50 -0500 Subject: [PATCH] fix(item-group-title): no content required --- ionic/components/item/item-group.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];