Skip to content

Commit 0faf6b8

Browse files
committed
refactor(tab-content): migrate to signal output
1 parent 0e35a6c commit 0faf6b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/coreui-angular/src/lib/tabs/tab-content/tab-content.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import {
55
ChangeDetectorRef,
66
Component,
77
ContentChildren,
8-
EventEmitter,
98
inject,
109
Input,
1110
numberAttribute,
1211
OnChanges,
1312
OnDestroy,
14-
Output,
13+
output,
1514
QueryList,
1615
SimpleChanges
1716
} from '@angular/core';
@@ -56,7 +55,7 @@ export class TabContentComponent implements AfterContentChecked, AfterContentIni
5655
/**
5756
* Event emitted on the active tab pane index change.
5857
*/
59-
@Output() activeTabPaneIdxChange: EventEmitter<number> = new EventEmitter<number>();
58+
readonly activeTabPaneIdxChange = output<number>();
6059

6160
@ContentChildren(TabPaneComponent) public panes!: QueryList<TabPaneComponent>;
6261
#tabServiceSubscription!: Subscription;

0 commit comments

Comments
 (0)