diff --git a/src/app/app.component.css b/src/app/app.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/app.component.html b/src/app/app.component.html
index a972e3e..c011255 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,4 +1,10 @@
- {{ title }}
+
+
+
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 71801fe..20f300c 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,14 +1,22 @@
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
+import { AuthService } from './services/auth.service';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
@Component({
selector: 'app-root',
- imports: [CommonModule, RouterOutlet],
+ imports: [CommonModule, RouterOutlet, MatButtonModule, MatIconModule],
templateUrl: './app.component.html',
standalone: true,
- styleUrl: './app.component.css',
})
export class AppComponent {
title = 'Employee Management System';
+
+ constructor(private authService: AuthService) {}
+
+ logout(): void {
+ this.authService.logout();
+ }
}
diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts
index d6fa206..ab05941 100644
--- a/src/app/services/auth.service.ts
+++ b/src/app/services/auth.service.ts
@@ -16,4 +16,8 @@ export class AuthService {
return false;
}
+
+ public logout(): void {
+ this.keycloakService.logout();
+ }
}
diff --git a/src/index.html b/src/index.html
index db6e104..ea50a44 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2,7 +2,7 @@
- Lf10StarterNew
+ Employee Management System