Home How to add click event in ui-router link?
Reply: 0

How to add click event in ui-router link?

user567
1#
user567 Published in June 19, 2018, 2:29 pm

I am using angularjs and the ui-router. How can I fire a click-event in this jscode:

<a ng-if="item.external!==true" id="nav-drafts"
   class="standard-menu-item comm-icon-news" draggable="false"
   ui-sref="root.drafts.index" ui-sref-opts="{inherit: false}"
   href="#/drafts">
    <span class="icon sso-file"></span>
    <span class="menu-item-label" ng-bind-html="item.label">Edits</span>
</a>

How can I insert a click event inside the anchore passing in the ui-sref property?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.456092 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO