# How to make a whole container clickable?

**URL:** <https://forum.radzen.com/t/how-to-make-a-whole-container-clickable/2022>\
**Category:** Angular\
**Created:** [November 20, 2019, 6:05pm UTC](https://forum.radzen.com/t/how-to-make-a-whole-container-clickable/2022 "2019-11-20T18:05:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbotas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/p/74df32/32.png) [@pbotas](https://forum.radzen.com/u/pbotas)\
**Post date:** [November 20, 2019, 6:05pm UTC](https://forum.radzen.com/t/how-to-make-a-whole-container-clickable/2022/1 "2019-11-20T18:05:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 21, 2019, 7:28am UTC](https://forum.radzen.com/t/how-to-make-a-whole-container-clickable/2022/2 "2019-11-21T07:28:01Z")

</div>

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

 ![image](https://forum.radzen.com/uploads/default/original/2X/3/3795d5ef16258800cfe31d83ad927640ff6ea963.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/6/62a7f26c0feb9c682fa897989736a413ee4f2b40.png)

---

<div class="post-metadata">

**Author:** ![pbotas](https://forum.radzen.com/letter_avatar_proxy/v4/letter/p/74df32/32.png) [@pbotas](https://forum.radzen.com/u/pbotas)\
**Post date:** [November 22, 2019, 4:12pm UTC](https://forum.radzen.com/t/how-to-make-a-whole-container-clickable/2022/3 "2019-11-22T16:12:13Z")

</div>

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');`
