refactor: remove debounce on dice calculations #210
1 changed files with 13 additions and 7 deletions
|
@ -1,10 +1,16 @@
|
||||||
import {Component, inject, OnInit, signal} from '@angular/core';
|
import { Component, inject, OnInit, signal } from '@angular/core';
|
||||||
import {CommonModule} from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import {FormBuilder, FormControl, FormGroup, ReactiveFormsModule, Validators,} from '@angular/forms';
|
import {
|
||||||
import {DiceService} from './dice.service';
|
FormBuilder,
|
||||||
import {DiceDto, DiceResult} from './dice.model';
|
FormControl,
|
||||||
import {tap} from 'rxjs/operators';
|
FormGroup,
|
||||||
import {UserService} from '@service/user.service';
|
ReactiveFormsModule,
|
||||||
|
Validators,
|
||||||
|
} from '@angular/forms';
|
||||||
|
import { DiceService } from './dice.service';
|
||||||
|
import { DiceDto, DiceResult } from './dice.model';
|
||||||
|
import { tap } from 'rxjs/operators';
|
||||||
|
import { UserService } from '@service/user.service';
|
||||||
|
|
||||||
type DiceFormGroup = FormGroup<{
|
type DiceFormGroup = FormGroup<{
|
||||||
betAmount: FormControl<number | null>;
|
betAmount: FormControl<number | null>;
|
||||||
|
|
Reference in a new issue