ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
52 lines (44 loc) • 1.24 kB
text/typescript
import { Component } from '@angular/core';
import { NzModalService } from '../../../index.showcase';
export class NzDemoModalLocaleComponent {
isVisible = false;
showModal = () => {
this.isVisible = true;
}
handleOk = (e) => {
this.isVisible = false;
}
handleCancel = (e) => {
console.log(e);
this.isVisible = false;
}
showConfirm = () => {
this.confirmServ.confirm({
title: 'Confirm',
content: 'Bla bla ...',
okText: 'OK',
cancelText: 'Cancel'
});
}
constructor(private confirmServ: NzModalService) {}
}