How to call method from component Angular?
There is a method that is called from template with e
target:
public chooseDocument(e, document: PdfFile): void {
e.preventDefault();
}
I want to call this method from another, what to pass instead e
?:
public do(): void {
this.chooseDocument(null, this.document)
}
Source: Angular Questions