Why are you binding event within controller. Bind it on the element 
directly using ng-click and see if that resolves the issue.


On Thursday, 15 June 2017 12:32:45 UTC+5:30, Raghu Ram wrote:
>
>
> First click not working, from second click onwards its working, please 
> check the below code
>
> var app = angular.module("partner-app", []);
>
> app.controller("partner-controller", function ($scope) {  
>      angular.element(document).on("click", ".Link1", function () {
>          alert("hi");
>      });
> });
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to