Skip to content

Commit

Permalink
ng generate @angular/core:output-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwind committed Dec 5, 2024
1 parent e25eb6d commit 193612c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/app/layout/layout-toolbar.component.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -121,13 +120,13 @@ import { WebsiteTheme } from './website-theme';
})
export class LayoutToolbarComponent {
readonly menuOpen = input<boolean>(true);
@Output() menuOpenChange = new EventEmitter<boolean>();
readonly menuOpenChange = output<boolean>();

readonly theme = input<WebsiteTheme>('dark');
@Output() themeChange = new EventEmitter<WebsiteTheme>();
readonly themeChange = output<WebsiteTheme>();

@Output() searchKeywordChange = new EventEmitter<string>();
@Output() selectSuggestItemChange = new EventEmitter<string>();
readonly searchKeywordChange = output<string>();
readonly selectSuggestItemChange = output<string>();

private platformService = inject(PlatformService);
private sitePostService = inject(SitePostService);
Expand Down

0 comments on commit 193612c

Please sign in to comment.