Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I have a project with one file one.html and another file two.html. File one.html works with jquery and is bound to root ("/") and two.html works with angularJS and the route is "/two.html#/partialtemplate".

What can I do to remove "/two.html#" from the route? I don't want this to show in the URL.

I have tried $locationProvider.html5mode(true) but it didn't work because the base URL("/one.html") is already bound to one.html.

share|improve this question
    
You would need to combine both pages functionality into one index.html to do what you are asking. With 2 files server wouldn't know which one to send the way you are suggesting. Explanation of your current configuration is a little bit unclear – charlietfl 22 hours ago
    
Alternative would be 2 index.html...each in different directory then let server send index based on directory in url – charlietfl 22 hours ago

Sol:

Do not load the $routeProvider by removing the ui router file form the index page where you dont want routing

Some references: 1) Disable angularJs routing, routeprovider already gone

2) How to disable routing in angularjs?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.