javascript - Make tag clickable with Angular -
javascript - Make <i> tag clickable with Angular -
i'm using semantics ui styling html5 app. added facebook share button follows:
<i ng-click="posttofacebook(competitor.title, competitor.votes)" class="icon facebook"></i>
but when hover on icon cursor doesn't alter hand cursor appears on clickable link.
i tried wrapping anchor tag:
<a><i ng-click="posttofacebook(competitor.title, competitor.votes)" class="icon facebook"></i></a>
but made icon disappear completely.
you can wrap icon in <a>
, specify href
attribute create link (place nil in href
):
<a href="javascript:"><i ng-click="posttofacebook(competitor.title, competitor.votes)" class="icon facebook"></i></a>
javascript html css angularjs
Comments
Post a Comment