All Questions
Tagged with angular.js error-handling
6 questions
1
vote
0
answers
34
views
How to optimize authentication and authorization, API calls in a task management frontend application?
Let me give a brief explanation of the mini-application I've designed using Angular :
A simple login page that requires user email and password as credentials. Once logged in, the user is moved to a ...
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:
...
2
votes
0
answers
2k
views
Django REST custom methods for generic views
I'm intern and work on a project where I develop DRF API that need to interact with mobile app written by my colleague with Ionic framework.
We are creating new user. My view method is following:
<...
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:
...
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 ...
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
...