title: Access $scope object with protractor
body: <p>I got an object like:</p>
  <pre><code>$scope.project = {name: 'whatever', description: 'blabla', another: 'another'};
  </code></pre>
  <p>To debug this, I enter in repl mode and try to see what &quot;project&quot; has.
  When I define project variable as below, and call it, it returns my object, but when I try to access its keys (project.name), I get undefined. If I do <code>Object.keys(project)</code> I am getting the page object methods like click, getAttribute, etc.</p>
  <p>Any ideas on how can I have access to the original object keys?</p>
  <p>View side:</p>
  <pre><code>&lt;h1 id=&quot;foo&quot;&gt;{{project.name}}&lt;/h1&gt;
  </code></pre>
  <p>Test side:</p>
  <pre><code>var project = element(by.id('foo')).evaluate('project');
  </code></pre>