mirror of
https://github.com/a-mayb3/KanbanCloneAngular.git
synced 2026-03-21 18:05:38 +01:00
Started working on homepage dashboard
This commit is contained in:
parent
1d39dffd56
commit
bff5e1dcf7
3 changed files with 124 additions and 0 deletions
23
src/app/pages/home/home.component.ts
Normal file
23
src/app/pages/home/home.component.ts
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue