add initial Angular components, services, and routing setup
This commit is contained in:
23
client/src/app/pages/home/home.component.ts
Normal file
23
client/src/app/pages/home/home.component.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import {Component, inject} from '@angular/core';
|
||||
import {MatButton} from '@angular/material/button';
|
||||
import {AuthService} from '../../services/auth/auth.service';
|
||||
import {RouterLink} from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [
|
||||
MatButton,
|
||||
RouterLink
|
||||
],
|
||||
templateUrl: './home.component.html',
|
||||
styleUrl: './home.component.css'
|
||||
})
|
||||
export class HomeComponent {
|
||||
|
||||
protected readonly authService: AuthService = inject(AuthService);
|
||||
|
||||
getUser() {
|
||||
return this.authService.user();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user