We use ngZorro in an Angular 10 project. Now I want to open the drawer (https://ng.ant.design/components/drawer/en) to show forms. The scenario is a list of e.g. products and on a click on one of the product, it's form should be opened in the drawer.
I'm using the NzDrawerService to create the drawer, but I cannot set any footer (called nzFooter).
For example, there is a ProductFormComponent, so in my ProductService.ts I can just call:
openForm(){
const drawerRef = this.drawerService.create({
nzTitle: 'My Title',
nzContent: ProductFormComponent
});
drawerRef.open()
}
Now, there is also an option for a predefined footer (nzFooter?: string | TemplateRef<{}>
), where I want to add the buttons for save and cancel.
Now the question: How can I get a TemplateRef here, because the function is called in a service and not in a component?