import { Component, inject } from '@angular/core';
import { DemoSfComponent } from '@shared';
import { ModalHelper } from '@yelon/theme';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
selector: 'form-modal-simple',
template: ` <button nz-button type="button" (click)="open()">Open</button> `,
standalone: true,
imports: [NzButtonModule]
})
export class FormModalSimpleComponent {
private readonly mh = inject(ModalHelper);
private readonly msg = inject(NzMessageService);
open(): void {
this.mh.create(DemoSfComponent).subscribe(res => this.msg.success(JSON.stringify(res)));
}
}