title: how can i pass id to my ui-view
body: <p>I want to access inventory by id, using link  <code>/inventory/description/:{{id}}</code> But it isnt working, nothing shows up. how can i access it by id ?</p>
  
  <pre><code>app.config(function config( $stateProvider, $urlRouterProvider) {
    $stateProvider.state('inventory',{
      url:'/inventory',
          views: {
              "main": {
                  controller: 'InventoryCtrl',
                  templateUrl: 'inventory/main.tpl.html'
              }
          },
          data:{ pageTitle: 'Inventory' }
    }
    ).state('inventory.detailview',{
      url:'/inventory/detailview',
          views: {
              "detailview": {
                  controller: 'InventoryCtrl',
                  templateUrl: 'inventory/detail.tpl.html'
              }
          },
          data:{ pageTitle: 'DetailView' }
    }
    ).state('inventory.description',{
      url:'/inventory/description/:{{id}}',
          views: {
              "descriptionview": {
                  templateUrl: 'inventory/description.tpl.html',
                  controller: function($scope, Inventory){
                      $scope.id = Inventory.query('id');
  
              }}
          },
          data:{ pageTitle: 'DescriptionView'}
    });
  });
  </code></pre>
  
  <p>my factory </p>
  
  <pre><code>app.factory('Inventory', function($resource, $http) {
  return $resource('http://web.lv/api/v1/inventory/:id', {id: "@id"},
      {
          update: {
              method: 'POST',
              params: {id: '@id'},
              isArray: false
          },
          save: {
              method: 'PUT'
          },
          query: {
              method: 'GET',
              params: {id: '@id'},
              isArray: false
          },
          create: {
              method: 'POST'
          },
          drop: {
              method: 'DELETE',
              params: {id: "@id"}
          }
      }
  );
  });
  </code></pre>
  
  <p>my controller</p>
  
  <pre><code>app.controller('InventoryCtrl', function($scope, $http,  Inventory, $location) {    
  
      //getting the objects from Inventory
          $scope.info = Inventory.query();
  
      //
          $scope.id = Inventory.query('id');
  </code></pre>
  
  <p>}</p>