@@ -0,0 +1,28 @@
|
||||
/** Angular Imports */
|
||||
import { Component } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
/**
|
||||
* View Office Component
|
||||
*/
|
||||
@Component({
|
||||
selector: 'mifosx-view-office',
|
||||
templateUrl: './view-office.component.html',
|
||||
styleUrls: ['./view-office.component.scss']
|
||||
})
|
||||
export class ViewOfficeComponent {
|
||||
|
||||
/** Office datatables data */
|
||||
officeDatatables: any;
|
||||
|
||||
/**
|
||||
* Fetches office datatables from `resolve`
|
||||
* @param {ActivatedRoute} route Activated Route
|
||||
*/
|
||||
constructor(private route: ActivatedRoute) {
|
||||
this.route.data.subscribe((data: { officeDatatables: any }) => {
|
||||
this.officeDatatables = data.officeDatatables;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user