ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
55 lines (49 loc) • 1.3 kB
text/typescript
import { Component, Input } from '@angular/core';
import { NzModalSubject } from '../../../index.showcase';
export class NzModalCustomizeComponent {
_name: string;
set name(value: string) {
this._name = value;
}
emitDataOutside() {
this.subject.next('传出数据');
}
handleCancel() {
this.subject.destroy('onCancel');
}
constructor(private subject: NzModalSubject) {
this.subject.on('onDestory', () => {
console.log('destroy');
});
}
}