There is HTML code:
<div class="item" data-url="link"></div>
<div class="item" data-url="link"></div>
<div class="item" data-url="link"></div>
In Jquery I can do:
$('.item').click(function () {
var url = $(this).attr('data-url');
redirect(url);
});
How do this in Angular?