import { Component } from '@angular/core'; import { CmModalService } from '../../../../../../components/cosmos.module'; @Component({ selector: 'cm-modal-doc-8', templateUrl: './modal-doc-8.component.html', }) export class ModalDoc8Component { isVisible = false; showModal = () => { this.isVisible = true; } handleOk = (e: any) => { this.isVisible = false; } handleCancel = (e: any) => { console.log(e); this.isVisible = false; } showConfirm = () => { this.confirmServ.confirm({ title: 'Confirm', content: 'Bla bla ...', okText: 'OK', cancelText: 'Cancel' }); } constructor(private confirmServ: CmModalService) { } }