1 import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
2 import { KnowledgeBase } from '../knowledge-base.type';
3 import { KnowledgeBaseService } from '../knowledge-base.service';
5 selector: 'app-knowledge-base-detail',
6 templateUrl: './knowledge-base-detail.component.html',
7 styleUrls: ['./knowledge-base-detail.component.less']
9 export class KnowledgeBaseDetailComponent implements OnInit {
12 public knowledgeBaseService: KnowledgeBaseService
14 @Input() showModal: boolean;
15 @Input() knowledgeBaseDetail: KnowledgeBase;
16 @Output() modalOpreation = new EventEmitter();
21 handleCancel(): void {
22 this.showModal = false;
23 this.modalOpreation.emit({ "cancel": true });
27 this.showModal = false;
28 this.modalOpreation.emit({ "cancel": true });