Replace @Output with output decorator in HistoryComponent
This commit is contained in:
parent
8657a33e65
commit
9a47cb6652
|
|
@ -1,4 +1,4 @@
|
|||
import {Component, EventEmitter, inject, input, OnChanges, OnInit, Output} from '@angular/core';
|
||||
import {Component, inject, input, OnChanges, OnInit, output} from '@angular/core';
|
||||
import {HistoryService, PunishmentHistory} from '@api';
|
||||
import {catchError, map, Observable, shareReplay} from 'rxjs';
|
||||
import {NgOptimizedImage} from '@angular/common';
|
||||
|
|
@ -33,8 +33,8 @@ export class HistoryComponent implements OnInit, OnChanges {
|
|||
page = input<number>(0);
|
||||
searchTerm = input<string>('');
|
||||
|
||||
@Output() pageChange = new EventEmitter<number>();
|
||||
@Output() selectItem = new EventEmitter<SearchParams>();
|
||||
pageChange = output<number>();
|
||||
selectItem = output<SearchParams>();
|
||||
|
||||
private uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user