In HTML i have a angular variable called
boards.current.url
whose value i can see via
However i want to use it's value in location.href as below,
<div class="board" onclick="location.href='{{boards.current.url}}'" style="cursor: pointer;">
this is not working - the value of angular variable
boards.current.url
doesn't get resolved - any insights?
use angular-directive ng-click instead of onclick
<div class="board" ng-click="location.href='{{boards.current.url}}'" style="cursor: pointer;">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With