I have  form with a submit method. Inside the form there is an input tag 
with a blur event handler. User types in some text into the input to look 
up item and clicks button to submit form. Below is some pseudocode:

MethodToGetData
{
 call http to get data and setup model objects
}

Blur Event Handler
{
  MethodToGetData
}

Submit Method
{
 MethodToGetData

 AddItem
}


The issue I am running into is if the user types in text and immediately 
clicks button to execute Submit, the blur event handler gets executed first 
and makes the http call. The submit method also makes the http call. I want 
to be able to execute the http call only once.

Any suggestions/thoughts on how to handle this?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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