8000 refactor(sidebar-nav-link): signal output · coreui/coreui-angular@65ff325 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65ff325

Browse files
committed
refactor(sidebar-nav-link): signal output
1 parent 0c0d472 commit 65ff325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgClass, NgTemplateOutlet } from '@angular/common';
2-
import { Component, EventEmitter, inject, Input, OnDestroy, OnInit, Output } from '@angular/core';
2+
import { Component, inject, Input, OnDestroy, OnInit, output } from '@angular/core';
33
import { NavigationEnd, Router, RouterModule } from '@angular/router';
44
import { Observable, Subscription } from 'rxjs';
55
import { filter } from 'rxjs/operators';
@@ -58,7 +58,7 @@ export class SidebarNavLinkComponent implements OnInit, OnDestroy {
5858
return this._item;
5959
}
6060

61-
@Output() linkClick = new EventEmitter();
61+
readonly linkClick = output();
6262

6363
public linkType!: string;
6464
public href!: string;

0 commit comments

Comments
 (0)
0