title: Access AngularJS constant in a view
body: <p>I'm gonna try to describe the scenario, bear with me please.</p>
  
  <p>I have a Angular constant called Urls filled with the routes and some methods to access them.</p>
  
  <pre class="lang-coffeescript prettyprint-override"><code>app = angular.module "app"
  
  app.constant "Urls",
      routes: 
          # Main stuff
          overview: "/"
          users: "/users"
          user: "/users/:id"
  
      overview: -&gt;
          return @.routes.overview
      users: -&gt;
          return @.routes.users
      user: (id)-&gt;
          return @.routes.user
                      .replace(":id", id)
  </code></pre>
  
  <p>The reason for using a constant for this is that I need to access it during the config phase of our application as well as use it in controllers.</p>
  
  <p>What I want to achieve is that I want to use it in a view as well, for instance;</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul class="foo"&gt;
      &lt;li ng-repeat="user in users"&gt;
          &lt;a href="{{Urls.user(user.id)}}"&gt;
              {{user.name}}
          &lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Is there a way to achieve something like this? Preferably without assigning the Urls constant to $rootScope or assigning it to every controllers $scope?</p>