title: How get extjs-6 sotre's data in mvvm architecture?
body: <p>I'm developing an <a href="https://docs.sencha.com/extjs/6.0/6.0.0-classic" rel="nofollow">Extjs 6</a> application using <a href="http://docs.sencha.com/extjs/6.0/application_architecture/application_architecture.html" rel="nofollow">MVVM architecture</a>. I have a model in <code>MyApp/model</code> folder as follow:  </p>
  
  <pre><code>Ext.define('MyApp.model.User', {
      extend: 'Ext.data.Model',
      fields: [
          {name: 'name',  type: 'string'},
          {name: 'age',   type: 'int'}
      ]
  });
  </code></pre>
  
  <p>And my store in <code>MyApp/store</code> folder is as follow:</p>
  
  <pre><code>Ext.define('MyApp.store.User', {
      extend: 'Ext.data.Store',
      model: 'MyApp.model.User',
      data : [
       {firstName: 'Seth',    age: 34},
       {firstName: 'Scott', age: 72},
       {firstName: 'Gary', age: 19},
       {firstName: 'Capybara', age: 208}
      ]
  });
  </code></pre>
  
  <p>And the in <code>Application.js</code> in <code>/MyApp</code> folder add the store as follow:</p>
  
  <pre><code>stores: [
      'User'
  ]
  </code></pre>
  
  <p>now I get store in my application as follow:</p>
  
  <pre><code>app = MyApp.getApplication();
  users = app.getStore('User');
  </code></pre>
  
  <p><strong>How can I get store's data</strong>? <code>users.getData()</code>? When I user <code>users.getData()</code> it returns <code>[undefined x 4]</code>. <strong>Where is the problem</strong>? <strong>Is it work correctly</strong>?</p>