feat(accounting-rules): view rule component

Add view rule component.
This commit is contained in:
Abhay Chawla
2018-08-06 00:57:30 +05:30
parent 0a092f1ed6
commit 6b008b968d
9 changed files with 211 additions and 4 deletions
@@ -0,0 +1,22 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'mifosx-view-rule',
templateUrl: './view-rule.component.html',
styleUrls: ['./view-rule.component.scss']
})
export class ViewRuleComponent implements OnInit {
accountingRule: any;
constructor(private route: ActivatedRoute) {
this.route.data.subscribe((data: { accountingRule: any }) => {
this.accountingRule = data.accountingRule;
});
}
ngOnInit() {
}
}