Posts

Showing posts with the label angularjs

[Solved ] onclick='myfunction({{x.value }})' how to use angular js scope variable with onclick event without ng-click, without ng-click or without onclick call function

<a href="#!" onclick="myfunction({{x.value }})">button</a>  Solution <a clickon="myfunction({{x.value}})" href="#!">button</a> <script>   $(document).on("click", "[clickon]", function () {     var y = $(this).attr('clickon');     setTimeout(y, 1) });   function myfunction(val){   alert(val)   }      </script> if  this post  was  helpful for u  pls  drop comment  in comment box  and subcribe  to web2tags