feat: add view employee component (#546)

Fixes: #534
This commit is contained in:
Rishabh Verma
2020-01-05 19:10:47 +03:00
committed by Abhay Chawla
parent 4ac086381f
commit df12a6b4ba
9 changed files with 198 additions and 2 deletions
@@ -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() {
}
}