When building apps, I often find myself trying to use ctrl+click or middle click to open a form or the details of an entity in a new page, Sadly, this doesn't work OOTB in angular and in the web in general. Only links are supposed to work that way.
I open an issue with angular: https://github.com/angular/angular/issues/53183 like others before, even if the prospects seem slim where I explained the downsides of other approaches that might seem interesting, but don't really work.
In the meantime, I will stick with links when I want the link design and buttons when I want the button design.
On a per project bases I can try to write some hack that overrides routerLink behavior of onClick for non anchor elements to try generate to handle ctrl/cmd/middle click before falling back to default behavior.
When building apps, I often find myself trying to use ctrl+click or middle click to open a form or the details of an entity in a new page, Sadly, this doesn't work OOTB in angular and in the web in general. Only links are supposed to work that way.
I open an issue with angular: https://github.com/angular/angular/issues/53183 like others before, even if the prospects seem slim where I explained the downsides of other approaches that might seem interesting, but don't really work.
In the meantime, I will stick with links when I want the link design and buttons when I want the button design. On a per project bases I can try to write some hack that overrides routerLink behavior of onClick for non anchor elements to try generate to handle ctrl/cmd/middle click before falling back to default behavior.