V
V
vasjapupkin3192014-11-02 18:13:29
Angular
vasjapupkin319, 2014-11-02 18:13:29

[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

2 answer(s)
A
Alexander Wolf, 2014-11-02
@mannaro

well and check on the server. And from angular make a request to this file.

E
Elizaveta Borisova, 2014-11-02
@Elizaveta

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 question

Ask a Question

731 491 924 answers to any question