title: How to set dynamic variable name in Angularjs controller
body: <p>This is my controller code :</p>
  
  <pre><code>var selectableFields = ["customerName", "customerAddress"];
  
  angular.forEach(selectableFields, function(field, key) {
  var value = $.jStorage.get(field); //using jStore to get the values
  $scope.field=value;
  
  });
  </code></pre>
  
  <p>The objective is to be able to access {{customerName}} and {{customerAddress}} in the view.
  Can anyone please tell me what is the correct way of doing this?</p>