G
G
GaserV2016-12-17 00:22:49
Ember.js
GaserV, 2016-12-17 00:22:49

Why is the data received from JSON not displayed?

Such situation.... It turns out json is returned, but the data is not output. What's the matter?
Here's what's in the console:
5ce69e5ea2a64547ba648e7a25b69db4.png

import Ember from 'ember';

export default Ember.Route.extend({
  model() {
    var json = $.getJSON("users.json")
    console.log(json)
    // this.store.createRecord('user', obj)
  }
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question