Skip to main content

All 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 ...
user285232's user avatar
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
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: <...
Ilia_Mochalov's user avatar
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