committed by
Abhay Chawla
parent
4ac086381f
commit
df12a6b4ba
@@ -0,0 +1,31 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
/**
|
||||
* View Employee Component.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-view-employee',
|
||||
templateUrl: './view-employee.component.html',
|
||||
styleUrls: ['./view-employee.component.scss']
|
||||
})
|
||||
export class ViewEmployeeComponent implements OnInit {
|
||||
|
||||
/** Employee data. */
|
||||
employeeData: any;
|
||||
|
||||
/**
|
||||
* Retrieves the employee data from `resolve`.
|
||||
* @param {ActivatedRoute} route Activated Route.
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
this.route.data.subscribe((data: { employee: any }) => {
|
||||
this.employeeData = data.employee;
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user