Embarking on my first MEAN application build using MEAN.JS, I was intrigued by the structure of how mean.js organizes the application, particularly why URLs begin with /#!/
.
For instance, for the login page, I envisioned:
http://example.com/login
instead of:
http://example.com/#!/login
In my search through Express and Angular documentation, as well as the thorough MEAN.JS docs, this URL prefix remained a mystery.
I noticed that in Angular's modules configuration routes file, URLs do not have the #!
prefix:
users.client.routes.js:
...
state('login', {
url: '/login',
templateUrl: 'modules/users/views/authentication/login.client.view.html'
}).
...
This led me to two inquiries:
- What is the reason behind these URL beginnings? Is there a recommended practice associated with it?
- If this format isn't detrimental, how and where can these URLs be modified?