-1

What does # character mean in a url and why does it appear when using angular routing:

http://localhost:8000/#/login
http://localhost:8000/#/register

How can i make the link look like: http://localhost:8000/register

0

3 Answers 3

2

Angular load template asynchronous. for navigate one view to second view use # sign like go to any ID in javascript. but if you not want to appear in URL then use.

$locationProvider.html5Mode(true);

In you config phase.

1

You need to set the HTML 5 MODE to true...

have a look at: Angular JS Documentation

1

An Angular application is a single-page application. Without the #, you would move from one page to another instead of staying on the same page. The # sign is used in the URI of an HTML page to navigate within the page.

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