title: Cannot read property '#<Object>' of undefined getting error?
body: <p>I have json file . I am trying to get json data from json file .then I need to convert the json (change key and value) key and value because this puglin require in that formate in key and value and   <a href="https://github.com/nimbly/angular-formly" rel="nofollow">https://github.com/nimbly/angular-formly</a> .
  But my problem is that istead for getting form from this plugin.
  <strong>Cannot read property '#&lt;Object&gt;' of undefined</strong>
  can you please tell where I am wrong ?
  Issue reproduce .click on button (get json from a file).then you will see in console that error .I want to show form when I click to button (click to grt json A)
  Plunker
  <a href="http://plnkr.co/edit/bbd6D828TU8TpZYre9D0?p=preview" rel="nofollow">http://plnkr.co/edit/bbd6D828TU8TpZYre9D0?p=preview</a></p>
  
  <pre><code>$scope.getFromAFile= function () {
    // body...
    var inputs=[];
    $http.get('a.json').success (function(data){
      var a=changeData(data);
            console.log('pp');
  
    console.log(data.studentName);
    $scope.formFields.push(a['input']);
  
  
  }).error(function(err){
          alert(err);
      });
  
  }
  
  function changeData(data) {
  
      var map = { NUMBER: "number", TEXT: "text", SWITCH: "select" };
  
      // data is an object - use for .. in to enumerate
      for (var key in data.input) {
          var e = data.input[key];   // alias for efficient structure dereferencing
          e.label = e.displayName;
          e.title = e.displayDetail;
          e.type = map[e.inputType];
  
          delete e.displayName;
          delete e.displayDetail;
          delete e.inputType;
      }
  
      console.log('after data...');
      console.log(data);
      return data;
  };
  </code></pre>
  
  <p>Thanks</p>