title: Get base url in AngularJS
body: <p>I want to get the base path of my Angular app.</p>
  
  <p>Right now I'm doing this: <code>$scope.baseUrl = '$location.host()</code></p>
  
  <p>But I only get this: <code>/localhost</code>. My current baseURL is <code>http://localhost:9000/</code>.</p>