title: Using $scope with $parse
body: <p>I want to find the value of a parsed text in angular.
  For example:<br><br>
  I know i can set the scope value of a variable text like following</p>
  
  <pre><code>var text = 'randomString';
  $parse(text).assign($scope, 1234);
  </code></pre>
  
  <p>But i do not need to set the value.  Instead i want to retrieve it. I tried <code>console.log($parse('randomString'))</code>, but it prints out a function. I tried <code>console.log($scope.$parse('randomString'))</code>, but it throws an error saying it is not a function.</p>
  
  <p>I know i can use <code>$scope.randomString</code> in the above example but i need the string to be dynamic so i do not know what the string will actually be</p>
  
  <p>How can i retrieve the value?</p>