I want to convert below piece of jquery code into angularjs.. Please help.
$('.favorite').click(function()
{
$(this).toggleClass('active');
});
I want to convert below piece of jquery code into angularjs.. Please help.
$('.favorite').click(function()
{
$(this).toggleClass('active');
});