In Angular projects, it’s common to use [routerLink] in template elements to handle navigation. While effective, this approach lacks the functionality of “Ctrl + Click” (or “Cmd + Click” on macOS) to open links in a new browser tab. In this post, I’ll share a simple yet effective directive to implement this feature.
📌 13 de Setembro, 2024