Files
micro-frontend/ng-ttc-frontend/src/app/component/main-landing/main-landing.component.ts

31 lines
624 B
TypeScript
Raw Normal View History

import { Component, OnInit } from '@angular/core';
2025-11-19 18:30:35 +07:00
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(
2025-11-19 18:30:35 +07:00
private router: Router
) {}
userData: any = {
name: localStorage.getItem('usrthinam') + ' ' + localStorage.getItem('usrthilstnam'),
role: localStorage.getItem('usrrol'),
avatar: ''
};
ngOnInit() {
2025-11-19 18:30:35 +07:00
}
2025-11-19 18:30:35 +07:00
navigate(path: string) {
this.router.navigate([path]);
}
}