style: format HTML and TypeScript files for consistency
All checks were successful
All checks were successful
This commit is contained in:
parent
0eaccb4453
commit
d46ec45f4a
5 changed files with 72 additions and 34 deletions
|
@ -1,35 +1,34 @@
|
|||
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
EventEmitter,
|
||||
inject,
|
||||
Input,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { TransactionService } from '@service/transaction.service';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Transaction } from '../../model/Transaction';
|
||||
import { AsyncPipe, CurrencyPipe, DatePipe, NgForOf, NgIf } from '@angular/common';
|
||||
import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
|
||||
import { TransactionData } from '../../model/TransactionData';
|
||||
|
||||
const PER_PAGE = 5
|
||||
const PER_PAGE = 5;
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: 'app-transaction-history',
|
||||
imports: [
|
||||
NgForOf,
|
||||
AsyncPipe,
|
||||
CurrencyPipe,
|
||||
DatePipe,
|
||||
AnimatedNumberComponent,
|
||||
NgIf,
|
||||
],
|
||||
imports: [NgForOf, AsyncPipe, CurrencyPipe, DatePipe, AnimatedNumberComponent, NgIf],
|
||||
templateUrl: './transaction-history.component.html',
|
||||
styleUrl: './transaction-history.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class TransactionHistoryComponent {
|
||||
@Input()
|
||||
isOpen: boolean = false;
|
||||
isOpen = false;
|
||||
@Output()
|
||||
closeEventEmitter = new EventEmitter<void>();
|
||||
|
||||
protected offset: number = 0;
|
||||
protected offset = 0;
|
||||
|
||||
private transactionService: TransactionService = inject(TransactionService);
|
||||
transactionData$: Observable<TransactionData> = this.loadTransactions();
|
||||
|
|
Reference in a new issue