diff --git a/src/app/core/components/tab-group/tab-group.component.ts b/src/app/core/components/tab-group/tab-group.component.ts
index a73f295..d7f389d 100644
--- a/src/app/core/components/tab-group/tab-group.component.ts
+++ b/src/app/core/components/tab-group/tab-group.component.ts
@@ -1,7 +1,14 @@
-import { Component, EventEmitter, Input, Output } from '@angular/core';
+import { Component, ContentChild, Directive, EventEmitter, Input, Output, TemplateRef } from '@angular/core';
export const TAB_SPLITTER = '|';
+@Directive({
+ selector: '[appTabGroupLabel]'
+})
+export class TabGroupLabelDirective {
+ constructor(public templateRef: TemplateRef
) {}
+}
+
@Component({
selector: 'app-tab-group',
templateUrl: './tab-group.component.html',
@@ -20,5 +27,7 @@ export class TabGroupComponent {
@Input() selection = -1;
@Output() selectionChange = new EventEmitter();
+ @ContentChild(TabGroupLabelDirective, { static: false }) labelTemplate: TabGroupLabelDirective;
+
constructor() { }
}
diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts
index e18a5a9..bdee69a 100644
--- a/src/app/core/core.module.ts
+++ b/src/app/core/core.module.ts
@@ -6,19 +6,21 @@ import { XrangePipe } from './pipes/xrange.pipe';
import { FocusDirective } from './directives/focus.directive';
import { GestureDirective } from './directives/gesture.directive';
-import { TabGroupComponent } from './components/tab-group/tab-group.component';
+import { TabGroupComponent, TabGroupLabelDirective } from './components/tab-group/tab-group.component';
@NgModule({
declarations: [
FocusDirective,
GestureDirective,
TabGroupComponent,
+ TabGroupLabelDirective,
XrangePipe,
],
exports: [
FocusDirective,
GestureDirective,
TabGroupComponent,
+ TabGroupLabelDirective,
XrangePipe,
],
imports: [