title: How do I use angular-ui-router to insert a parameter into a template?
body: <p>I'm trying to figure out how to pass the <code>id</code> parameter to my template. Here it the code I have so far:</p>
  
  <pre><code>$stateProvider
      .state('users', {
          url: "/user/:id/view",
          views: {
              "viewA": {
                  templateUrl: "partials/users/nav.html"
              }
          }
      })
  </code></pre>
  
  <p>I need to insert the <code>id</code> parameter into the <code>partials/users/nav.html</code> template. How do I do this?</p>