1 import {Component, OnInit} from '@angular/core';
2 import {Router, ActivatedRoute, ParamMap} from '@angular/router';
3 import {IdlObject} from '@eg/core/idl.service';
4 import {PoService} from './po.service';
7 templateUrl: 'po.component.html'
9 export class PoComponent implements OnInit {
14 private route: ActivatedRoute,
15 public poService: PoService
19 this.route.paramMap.subscribe((params: ParamMap) => {
20 this.poId = +params.get('poId');
24 isBasePage(): boolean {
25 return !this.route.firstChild ||
26 this.route.firstChild.snapshot.url.length === 0;