1 import {Component, EventEmitter, OnInit, Output} from '@angular/core';
2 import {PackageCreationStore} from '../../package-creation.store';
3 import {Template} from '../../mapping-models/CBAPacakge.model';
6 selector: 'app-templ-mapp-listing',
7 templateUrl: './templ-mapp-listing.component.html',
8 styleUrls: ['./templ-mapp-listing.component.css']
10 export class TemplMappListingComponent implements OnInit {
11 @Output() showCreationViewParentNotification = new EventEmitter<any>();
12 private templates: Template;
14 constructor(private packageCreationStore: PackageCreationStore) {
15 this.packageCreationStore.state$.subscribe(cba => {
17 this.templates = cba.templates;
26 this.showCreationViewParentNotification.emit('tell parent to open create views');