0

I'd like to use express routing with angularjs.

My web service was consisted as below.

My server routing has two ways.

1. http://localhost/login // has 2 sub client routings (/#login, /#register)

2. http://localhost/main  // has some client routings (/#profile, /#content, etc)

I want to go to http://localhost/main/#profile from http://localhost/login/#login.

How to do that?

1 Answer 1

2

AFAIK neither $location, nor ngRoute which is based upon it, are made to access this fragment of URL. You'll have to use legacy JS, using window.location.replace(URL).

Sign up to request clarification or add additional context in comments.

Comments

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.