title: How can I get a single record from AngularFire collection synchronized from Firebase
body: <p>I am having trouble getting a single record from an AngularFire synchronized array. </p>
  
  <p>This is my service:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>app.factory("Projects", ["$firebaseArray", function($firebaseArray) {
      // create a reference to the Firebase where we will store our data
      var ref = new Firebase("https://XXXXXXXXXX.firebaseio.com");
      var childRef = ref.child('projects');
      var projects = $firebaseArray(childRef);
  
      return {
          all: projects,
  
          create: function (projects) {
              return projects.$add(project);
          },
          get: function (projectId) {
              console.log(projectId);
              projects.$loaded().then(function(x) {
                  var project = x.$getRecord(projectId);
                  console.log(project); // This print null
              }).catch(function(error) {
                  console.log("Error:", error);
              });
          },
          delete: function (project) {
              return projects.$remove(project);
          }
      };
    }
  ]);
  </code></pre>
  
  <p>This is my controller:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.controller('ProjectViewCtrl', function ($scope, $routeParams, Projects, Auth) {
      $scope.project = Projects.get($routeParams.projectId);
  });
  </code></pre>
  
  <p>This is my view:</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;div&gt;
   &lt;p&gt;{{project.creatorUID}}&lt;/p&gt;
   &lt;p&gt;Project ID: {{project.$id}}&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;a class="btn button" ng-href="#!/"&gt;Back to Dashboard&lt;/a&gt;
  </code></pre>
  
  <p>I can pull up the detail project as far as the routing but I am not able to see any content or data.</p>