How to make a whole container clickable?

I have a set of cards, each with contents inside, and I would like to allow users to click anywhere on the card to open another page (or perform any other action). This doesn't seem possible right now... Is there any work around?

You can try using the newly introduced custom attributes feature. Add (click) attribute and use a custom method to invoke the code you need.

1 Like

It worked perferctly, thanks @korchev.
However I must tell, if we use document.location.href to navigate to another page, the browser reloads the page all over again, and that's not the Angular default behavior. I quickly found out that to perform the Angular navigation we just need to invoke this.router.navigateByUrl('url');