title: Loading data from service using $routeParam
body: <p>I am trying to load a group of messages depending on an ID that is part of the app's route. The routeParams object appears to be a promise, and I'm not sure how to set it up so that it waits until the routeParams object have loaded to load the group of messages:</p>
  
  <pre><code>var current = Messages.rest({m_gid:$routeParams.gid}).query({}, function () { 
      $scope.messages.current = Messages.messages.current = current.data;
  }); 
  </code></pre>
  
  <p>I'm sure that this is simple, I'm just at a loss...</p>