Files
micro-frontend/ng-ttc-frontend/src/app/component/main-landing/main-landing.component.ts
supphakitd 60be3f7890
Some checks failed
Build Docker Image / Restart Docker Compose (push) Has been cancelled
Build Docker Image / Build Docker Image (push) Has been cancelled
ng-ttc-frontend: sep userrole, added roleGuard
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
2025-12-03 06:54:07 +07:00

31 lines
624 B
TypeScript

import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-main-landing',
standalone: false,
templateUrl: './main-landing.component.html',
styleUrls: ['./main-landing.component.css']
})
export class MainLandingComponent implements OnInit {
constructor(
private router: Router
) {}
userData: any = {
name: localStorage.getItem('usrthinam') + ' ' + localStorage.getItem('usrthilstnam'),
role: localStorage.getItem('usrrol'),
avatar: ''
};
ngOnInit() {
}
navigate(path: string) {
this.router.navigate([path]);
}
}