user3024814 user3024814 - 2 years ago 115
AngularJS Question

Angular Material can't set md-card as an anchor

Is it possible to make the whole card a link in Angular material or is there another directive intended for this use case?

Answer Source

You can just put a ng-click on the card and perform your operation.Further you can style the card with hover effects to get the feel of a link.Like this :


<md-card ng-click="cardSelected()" class="cardAsLink">


  console.log("card Clicked");


  cursor: pointer;

  border : 1px solid blue;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download