Started working on homepage dashboard

This commit is contained in:
Marta Borgia Leiva 2026-02-09 20:18:24 +01:00
parent 1d39dffd56
commit bff5e1dcf7
Signed by: a-mayb3
GPG key ID: 293AAC4FED165CE3
3 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,23 @@
import { Component, inject } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgIf, NgFor } from '@angular/common';
import { AuthService } from '../../services/auth.service';
import { Project } from '../../models/projects.models';
@Component({
selector: 'app-home',
standalone: true,
imports: [CommonModule, NgIf, NgFor],
templateUrl: './home.component.html',
styleUrl: './home.component.css'
})
export class HomeComponent {
protected authService = inject(AuthService);
protected projectList : Project[] = this.authService.currentUser()?.projects || [];
logout() {
this.authService.logout().subscribe();
}
}