Ember-data Error While Loading Route: TypeError {}
I recently started to implement the ember data library into my project but now everything is broken, the google chrome console provides me with these errors: - Error while loading
Solution 1:
You don't need to include id: DS.attr()
in your model class. Also, the response for a singular resource should have the root key track
instead of tracks
:
{"track":{"id":85,"title":"Untitled","file":{"filename":"Lines of Latitude - You want it (Free Download).mp3","filepath":"\/home\/vhosts\/domains\/shoutzor\/music\/Lines of Latitude - You want it (Free Download).mp3","crc":"51ca8346","length":262,"id3":[]},"artist":[],"album":[]}}`
Post a Comment for "Ember-data Error While Loading Route: TypeError {}"