title: How to return/edit REST resource with AngularJS & Restangular
body: <p>Using <a href="https://github.com/mgonto/restangular" rel="nofollow">Restangular</a> for AngularJS, keep getting an object object from Mongolab.</p>
  
  <p>I'm sure it has to do with Promise but not sure how to use/implement this coming from old Java OO experience.</p>
  
  <p>(Side note, would something like Eloquent Javascript, some book or resource help me understand the 'new' Javascript style?)</p>
  
  <p>The small web app is for Disabled Students and is to input/edit the students, update the time they spend after school and then output reports for their parents/caregivers every week.</p>
  
  <p>Here's the code that returns undefined when popping up a new form (AngularJS Boostrap UI modal)</p>
  
  <p>I personally think Restangular &amp; the documentation is a great addition so hope it doesn't dissuade others - this is just me not knowing enough.</p>
  
  <p>Thanks in advance</p>
  
  <p>app.js
  ...</p>
  
  <pre><code>$scope.editStudent = function(id) {
      $scope.myStudent = Restangular.one("students", id);
      console.log($scope.myStudent);
  }
  </code></pre>