Did you ever get this working? It seems you can only set timeout to less
than 1000milliseconds.
On Friday, October 4, 2013 6:58:54 PM UTC-5, Orelic wrote:
>
> How can I achieve the below code using $resource? I know resource has a
> timeout how can I set it? Example will be appreciated... thank you!
> $http({method: 'GET', url: myUrl'', timeout : 100}).success(function () {
> alert("Ok");
> }).error(function () {
> alert("TimeOut");
> });
>
--
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/d/optout.