I have an Angular 15 app that uses a pipeline generated api-service. In the service I have a method for getting a list of items, but I am not sure how to pass parameters in any order.
public getList(page?: number | undefined, size?: number, type?: string, completed: boolean = false) {
....
}
When calling this method, I am able to send params as long as I use the correct number of params in the correct order, but I get an error when I try to pass in something specific
this.getList(undefined, 1) #returns list
this.getList(size: 1); #throws error
I remember being able to do this before, but I can't remember nor find the syntax for this