We are using ngZorro in our Angular 10 project. Currently, we want to implement a functionality where clicking on a product from a list will open its form in a drawer ().
To achieve this, we are utilizing NzDrawerService to create the drawer. However, we are facing challenges in setting up the footer (nzFooter).
For instance, let's consider a ProductFormComponent. In our ProductService.ts file, we have the following code snippet:
openForm(){
const drawerRef = this.drawerService.create({
nzTitle: 'My Title',
nzContent: ProductFormComponent
});
drawerRef.open()
}
We also need to add buttons for save and cancel in the footer by specifying
nzFooter?: string | TemplateRef<{}>
. The issue arises when trying to incorporate a TemplateRef within a service function call rather than a component.