1

I have complete angular js working application.But i have a challenge ahead in that single page has to be made which will open on click of link.

Now the challenge for me is that if user is not logged in(Session not created) and someone trying to access any link it will redirect to login page,but in current case since i dont want user to be logged in and directly taken to that page and let him perform actions.

One simple solution for me was to create different application but i want to utilize the contents and code of current application.

Any one has faced any situation like this before,If yes then is there any possible way?

2
  • 2
    Modify the code that performs the redirect to the login page to have an exemption for this single page. Commented Jan 27, 2017 at 4:21
  • 1
    @pratswinz , try to keep the session related function in a method and use resolve in the routing to check the autentication Commented Jan 27, 2017 at 4:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.