You need to enable it html5mode. Documentation and considerations can be found here .
Here is an example taken from Brian Ford :
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
}
]);
The angular -ui structure has an example configuration for connecting it to express.js:
var express = require('express');
var app = express();
app.use('/js', express.static(__dirname + '/js'));
app.use('/dist', express.static(__dirname + '/../dist'));
app.use('/css', express.static(__dirname + '/css'));
app.use('/partials', express.static(__dirname + '/partials'));
app.all('/*', function(req, res, next) {
res.sendfile('index.html', { root: __dirname });
});
app.listen(3006);
, index.html, /partials/:name, /api/*