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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -