Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65ff325

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

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.ts
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.