Hello,
Thanks for your reply.
Actually I solved the problem with the help of another coder.
The solution was to provide a promise.resolve to the http to abort further
http calls
So this is what I roughly did:
var canceler = $q.defer();
http({
url: 'url-to-rest-api'
timeout: canceler // this stops further http calls
}).success( successcallback )
//....
canceler.resolve()
Are you familiar with this?
Now, I'd like to reverse the cancellation. How can I do that?
The Idea is to build a search bar that uses a restful service which
constantly returns results as I type in the search bar. The idea is to stop
the calls, show the results and once shown, allow the user to make more
searches ( a gif image would indicate when the results are fully loaded and
when its ok to type in more words to continue searching)
Thank you
2013/12/16 Sander Elias <[email protected]>
> Hi Jake,
>
> Nope, nothing going on with ng-repeat. Probably something going on with
> your code, but that is really hard to tell without you showing it.
>
> If you build an plunk or a fiddle illustrating your problem, most of us
> are quite happy to take a look at it.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/ObTIhhAAxzk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
JAKE KWON +1 (604) 655 3109
email: [email protected]
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.