31 lines
624 B
TypeScript
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]);
|
|
}
|
|
}
|