1 import {Component, OnInit} from '@angular/core';
2 import {ActivatedRoute} from '@angular/router';
3 import {PackageStore} from './package.store';
4 import {BluePrintDetailModel} from '../model/BluePrint.detail.model';
8 selector: 'app-configuration-dashboard',
9 templateUrl: './configuration-dashboard.component.html',
10 styleUrls: ['./configuration-dashboard.component.css']
12 export class ConfigurationDashboardComponent implements OnInit {
13 viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
15 constructor(private route: ActivatedRoute, private configurationStore: PackageStore) {
17 const id = this.route.snapshot.paramMap.get('id');
18 this.configurationStore.getPagedPackages(id);
19 this.configurationStore.state$.subscribe(
21 if (el && el.configuration) {
22 this.viewedPackage = el.configuration;