feat(auth): add login and registration modal functionality
This commit is contained in:
parent
5bbfa5994e
commit
0079ee7bf2
11 changed files with 212 additions and 55 deletions
|
@ -1,9 +1,11 @@
|
|||
import {
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
EventEmitter,
|
||||
inject,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
Output,
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
@ -26,6 +28,9 @@ export class NavbarComponent implements OnInit, OnDestroy {
|
|||
private authSubscription!: Subscription;
|
||||
public balance = signal(0);
|
||||
|
||||
@Output() showLogin = new EventEmitter<void>();
|
||||
@Output() showRegister = new EventEmitter<void>();
|
||||
|
||||
ngOnInit() {
|
||||
this.authSubscription = this.authService.userSubject.subscribe({
|
||||
next: (user) => {
|
||||
|
|
Reference in a new issue