title: ExpressJS paired with AngularJS Routing without hashtag on links
body: <p>I'm trying to implement a routing function on my ExpressJS Server.</p>
  
  <pre><code>http://localhost:3000/app/sub_one
  http://localhost:3000/app/sub_two
  </code></pre>
  
  <p>Unfortunately, I am able to make this work with a prefix of <code>#</code> in between the application name and the module. I've been searching for the solution and it seems this code would do it in my angular config - <code>$locationProvider.html5Mode(true);</code>.</p>
  
  <p>But having that implemented and adjusting the link, access the following link returns an unusual behaviour.</p>
  
  <pre><code>http://localhost:3000/app/sub_one =&gt; Cannot GET /app/sub_one
  http://localhost:3000/app/sub_two =&gt; Cannot GET /app/sub_two
  </code></pre>
  
  <p>I may have the intuition that the problem is my routing on the <code>server.js</code>.</p>
  
  <pre><code>var port = 3000;
  var express = require("express");
  var morgan = require("morgan");
  var server = express();
  
  server.use(morgan("tiny"));
  server.use("/app", express.static(__dirname + "/app"));
  server.use("/bower_components", express.static(__dirname + "/bower_components"));
  server.listen(port, function() {
      console.log("Node server initialized. Server's port: " + port);
  });
  </code></pre>
  
  <p>I have placed a repository for this problem on <a href="https://bitbucket.org/dpebadiola/node-angularjs" rel="noreferrer">Bitbucket</a></p>