Answer the question
In order to leave comments, you need to log in
[AngularJS] How to check if a cookie exists?
Hey!
I’m doing SPA (for the first time) and after studying and comparing various libraries and frameworks, I settled on AngularJS (I’m barely friends with javascript), and now I’m doing an admin panel, the question arose about authorization, how to check for cookies (and if there are none, show the authorization form) .
Thank you!
Answer the question
In order to leave comments, you need to log in
well and check on the server. And from angular make a request to this file.
Well, stop being friends with javascript! It is dangerous to sit down for SPA Angular without knowledge of the language and native features.
The server is responsible for authorization.
Interested in training? Write [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question