title: angular js - getting json data
body: <p>I am trying to get data from json data so i write this:</p>
  
  <pre><code>app.factory('data', function($resource) {
      return $resource('mock/plane_urls.json', {}, {
          getTreeData: { method: 'GET', isArray: false }
      })
  })
  </code></pre>
  
  <p>and then using:</p>
  
  <pre><code>data.getTreeData.Carriers.Carrier;
  </code></pre>
  
  <p>Where Carriers is the first node in json file. but it doesnt work ;/ I got error </p>
  
  <blockquote>
    <p>Error: data.getTreeData.Carriers is undefined</p>
  </blockquote>