1 import { Component, OnInit } from '@angular/core';
2 import { ActivatedRoute } from '@angular/router';
3 import { PackageCreationStore } from '../package-creation.store';
6 selector: 'app-template-mapping',
7 templateUrl: './template-mapping.component.html',
8 styleUrls: ['./template-mapping.component.css']
10 export class TemplateMappingComponent implements OnInit {
14 constructor(private route: ActivatedRoute, private pakcageStore: PackageCreationStore) {
18 if (this.route.snapshot.paramMap.has('id')) {
19 console.log('Edit mode');
20 this.creationView = false;
21 this.listView = false;
23 console.log('Create mode');
24 this.pakcageStore.clear();
28 this.creationView = false;
33 this.listView = false;
34 this.creationView = false;