- @switch (selectedTab) {
- @case (0) {
-
Content for tab one
- }
- @case (1) {
-
Content for tab two
- }
- @case (2) {
-
Content for tab three
- }
- }
+
+ Content for tab one
+ Content for tab two
+ Content for tab three
diff --git a/src/app/views/components/tab-bar/tab-bar.component.ts b/src/app/views/components/tab-bar/tab-bar.component.ts
index 34420a6..9b69ff5 100644
--- a/src/app/views/components/tab-bar/tab-bar.component.ts
+++ b/src/app/views/components/tab-bar/tab-bar.component.ts
@@ -1,12 +1,14 @@
import { Component } from '@angular/core';
import { DemoCardComponent } from '../../../components/demo-card/demo-card.component';
-import { ForgeTabBarModule, ForgeTabModule } from '@tylertech/forge-angular';
-
+import {
+ ForgeTabBarModule,
+ ForgeTabPanelModule,
+} from '@tylertech/forge-angular';
@Component({
- selector: 'app-tab-bar',
- templateUrl: './tab-bar.component.html',
- imports: [DemoCardComponent, ForgeTabBarModule, ForgeTabModule]
+ selector: 'app-tab-bar',
+ templateUrl: './tab-bar.component.html',
+ imports: [DemoCardComponent, ForgeTabBarModule, ForgeTabPanelModule],
})
export class TabBarComponent {
public selectedTab = 1;
diff --git a/src/app/views/components/tab-bar/tab-bar.module.ts b/src/app/views/components/tab-bar/tab-bar.module.ts
index f44b31f..b1ecf70 100644
--- a/src/app/views/components/tab-bar/tab-bar.module.ts
+++ b/src/app/views/components/tab-bar/tab-bar.module.ts
@@ -1,17 +1,17 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
-import { ForgeTabBarModule } from '@tylertech/forge-angular';
+import { ForgeTabBarModule, ForgeTabModule } from '@tylertech/forge-angular';
import { DemoCardComponent } from '../../../components/demo-card/demo-card.component';
import { TabBarComponent } from './tab-bar.component';
-
@NgModule({
- imports: [
- CommonModule,
- ForgeTabBarModule,
- DemoCardComponent,
- TabBarComponent
- ]
+ imports: [
+ CommonModule,
+ ForgeTabBarModule,
+ DemoCardComponent,
+ TabBarComponent,
+ ForgeTabModule,
+ ],
})
-export class TabBarModule { }
+export class TabBarModule {}