1 import {Component, OnInit} from '@angular/core';
2 import {ActivatedRoute, ParamMap} from '@angular/router';
5 * Parent component for all Selection List sub-displays.
10 templateUrl: 'picklist.component.html'
12 export class PicklistComponent implements OnInit {
16 constructor(private route: ActivatedRoute) {}
19 this.route.paramMap.subscribe((params: ParamMap) => {
20 this.picklistId = +params.get('picklistId');
24 isBasePage(): boolean {
25 return !this.route.firstChild ||
26 this.route.firstChild.snapshot.url.length === 0;