diff --git a/src/core/components/sites-list/sites-list.ts b/src/core/components/sites-list/sites-list.ts index 812cade37..0edb15b4f 100644 --- a/src/core/components/sites-list/sites-list.ts +++ b/src/core/components/sites-list/sites-list.ts @@ -47,8 +47,8 @@ export class CoreSitesListComponent { @Input() currentSiteClickable?: boolean; // If set, specify a different clickable value for current site. @Output() onSiteClicked = new EventEmitter(); - @ContentChild('siteItem') siteItemTemplate?: TemplateRef; - @ContentChild('siteLabel') siteLabelTemplate?: TemplateRef; + @ContentChild('siteItem') siteItemTemplate?: TemplateRef<{site: T; isCurrentSite: boolean}>; + @ContentChild('siteLabel') siteLabelTemplate?: TemplateRef<{site: T; isCurrentSite: boolean}>; /** * Check whether a site is clickable. diff --git a/src/core/components/swipe-slides/swipe-slides.ts b/src/core/components/swipe-slides/swipe-slides.ts index 82c856af3..fa3864c38 100644 --- a/src/core/components/swipe-slides/swipe-slides.ts +++ b/src/core/components/swipe-slides/swipe-slides.ts @@ -67,7 +67,7 @@ export class CoreSwipeSlidesComponent implements OnChanges, OnDe }, 0); } - @ContentChild(TemplateRef) template?: TemplateRef; // Template defined by the content. + @ContentChild(TemplateRef) template?: TemplateRef<{item: Item; active: boolean}>; // Template defined by the content. protected hostElement: HTMLElement; protected unsubscribe?: () => void; diff --git a/src/core/components/tabs/tab.ts b/src/core/components/tabs/tab.ts index d5c0be34e..dd276f647 100644 --- a/src/core/components/tabs/tab.ts +++ b/src/core/components/tabs/tab.ts @@ -68,7 +68,7 @@ export class CoreTabComponent implements OnInit, OnDestroy, CoreTabBase { @Input() id = ''; // An ID to identify the tab. @Output() ionSelect: EventEmitter = new EventEmitter(); - @ContentChild(TemplateRef) template?: TemplateRef; // Template defined by the content. + @ContentChild(TemplateRef) template?: TemplateRef; // Template defined by the content. element: HTMLElement; // The core-tab element. loaded = false;