title: Creating and accessing a global constant in AngularJS
body: <p>Does anyone know the best way to create and access a global constant is AngularJS?</p>
  
  <p>I want to be able to doe something like:</p>
  
  <pre><code>app.constant('baseURL','http://www.baseurl.com');
  </code></pre>
  
  <p>and access it from any factory or controller.</p>