Skip to content

Commit 3a747c3

Browse files
fix: fix tab condition
1 parent 7955d1d commit 3a747c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/showcase/components/doc/app.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { AppDocThemingSection } from './app.docthemingsection';
2626
<button type="button" (click)="activateTab(1)">API</button>
2727
</li>
2828
}
29-
@if (_componentName() || themeDocs()) {
29+
@if (themeDocs()) {
3030
<li [ngClass]="{ 'doc-tabmenu-active': docService.activeTab() === 2 }">
3131
<button type="button" (click)="activateTab(2)">THEMING</button>
3232
</li>
@@ -47,7 +47,7 @@ import { AppDocThemingSection } from './app.docthemingsection';
4747
}
4848
}
4949
50-
@if (_componentName() || themeDocs()) {
50+
@if (themeDocs()) {
5151
@defer (when docService.activeTab() === 2) {
5252
<app-docthemingsection [header]="header()" [docs]="themeDocs()" [componentName]="_componentName()" class="doc-tabpanel" [ngStyle]="{ display: docService.activeTab() === 2 ? 'flex' : 'none' }" />
5353
}
@@ -103,6 +103,7 @@ export class AppDoc implements OnInit, OnChanges {
103103

104104
ngOnInit() {
105105
this.navigate();
106+
console.log(this.activeTab());
106107
}
107108

108109
ngOnChanges(changes: SimpleChanges) {

0 commit comments

Comments
 (0)