feat(slots): add slot machine component with styling and logic #170
2 changed files with 2 additions and 9 deletions
|
@ -61,7 +61,7 @@ export default class SlotsComponent implements OnInit, OnDestroy {
|
||||||
this.slotInfo.set(data);
|
this.slotInfo.set(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.userSubscription = this.userService.currentUser$.subscribe((user) => {
|
this.userSubscription = this.userService.getCurrentUser().subscribe((user) => {
|
||||||
this.balance.set(user?.balance ?? 0);
|
this.balance.set(user?.balance ?? 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
import {
|
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
|
||||||
ChangeDetectionStrategy,
|
|
||||||
Component,
|
|
||||||
EventEmitter,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
Output,
|
|
||||||
} from '@angular/core';
|
|
||||||
import { TransactionService } from '@service/transaction.service';
|
import { TransactionService } from '@service/transaction.service';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { AsyncPipe, CurrencyPipe, DatePipe, NgIf } from '@angular/common';
|
import { AsyncPipe, CurrencyPipe, DatePipe, NgIf } from '@angular/common';
|
||||||
|
|
Reference in a new issue