ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
35 lines (30 loc) • 802 B
text/typescript
import { Component, Input } from '@angular/core';
import { NzModalRef } from 'ng-zorro-antd/modal';
export class DemoModalComponent {
record: any;
constructor(private modal: NzModalRef) {}
ok(): void {
this.modal.destroy(`new time: ${+new Date()}`);
}
cancel(): void {
this.modal.destroy();
}
}