Files
gameovergne-app/client/src/app/pages/home/home.component.ts

26 lines
646 B
TypeScript

import {Component, inject} from '@angular/core';
import {MatButton} from '@angular/material/button';
import {AuthService} from '../../services/auth/auth.service';
import {RouterLink} from '@angular/router';
import {AddProductComponent} from '../add-product/add-product.component';
@Component({
selector: 'app-home',
standalone: true,
imports: [
MatButton,
RouterLink,
AddProductComponent
],
templateUrl: './home.component.html',
styleUrl: './home.component.css'
})
export class HomeComponent {
protected readonly authService: AuthService = inject(AuthService);
getUser() {
return this.authService.user();
}
}