Skip to main content

All Questions

4 votes
1 answer
3k views

AngularJS recursive function call with $timeout

I have created a recursive function call in AngularJS and just wonder if is there a better way to solve this problem? The code works perfectly. My code is the following: ...
Embrioka's user avatar
  • 313
2 votes
1 answer
155 views

Handling success and failure when retrieving product information

I've got an Angular controller where I have two functions that are repeated inside two functions: ...
Jonathan Solorzano's user avatar
2 votes
2 answers
292 views

Handling rejected HTTP responses with status 401

I'm kinda new to javascript and have question about it. Now my practical project is growing a bit bigger. I got the following if else statement. Is it possible to refactor this ? Should i use an use ...
Greg's user avatar
  • 193
1 vote
1 answer
131 views

Logging out using nested promises

Is it OK to do that ? for example, I have my log out service ...
Non's user avatar
  • 183