From 193612c411895cab15aebcb09ef6564d8c57b88a Mon Sep 17 00:00:00 2001 From: Mike Huang Date: Thu, 5 Dec 2024 11:27:52 +0800 Subject: [PATCH] ng generate @angular/core:output-migration --- src/app/layout/layout-toolbar.component.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/layout/layout-toolbar.component.ts b/src/app/layout/layout-toolbar.component.ts index 0ba3e474ae..d0f9e9dfae 100644 --- a/src/app/layout/layout-toolbar.component.ts +++ b/src/app/layout/layout-toolbar.component.ts @@ -1,10 +1,9 @@ import { ChangeDetectionStrategy, Component, - EventEmitter, - Output, inject, - input + input, + output } from '@angular/core'; import { toSignal } from '@angular/core/rxjs-interop'; import { FormControl, ReactiveFormsModule } from '@angular/forms'; @@ -121,13 +120,13 @@ import { WebsiteTheme } from './website-theme'; }) export class LayoutToolbarComponent { readonly menuOpen = input(true); - @Output() menuOpenChange = new EventEmitter(); + readonly menuOpenChange = output(); readonly theme = input('dark'); - @Output() themeChange = new EventEmitter(); + readonly themeChange = output(); - @Output() searchKeywordChange = new EventEmitter(); - @Output() selectSuggestItemChange = new EventEmitter(); + readonly searchKeywordChange = output(); + readonly selectSuggestItemChange = output(); private platformService = inject(PlatformService); private sitePostService = inject(SitePostService);