Okay here is what I’ve tried and am getting an error.
item route where I’m also trying to do the save function here is my model I’m attempting
var store = this.store;
And in the console on the
item route I see this
Error while processing route: item DS.default.Attr is not a function TypeError: DS.default.Attr is not a function
at mod.state (http://localhost:4200/assets/vendor.js:150:29)
at tryFinally (http://localhost:4200/assets/vendor.js:30:14)
at requireModule (http://localhost:4200/assets/vendor.js:148:5)
at Ember.DefaultResolver.extend._extractDefaultExport (http://localhost:4200/assets/vendor.js:69229:20)
at resolveOther (http://localhost:4200/assets/vendor.js:68961:32)
at superWrapper (http://localhost:4200/assets/vendor.js:32770:20)
at exports.default._emberRuntimeSystemObject.default.extend.resolve (http://localhost:4200/assets/vendor.js:15520:35)
at Object.resolve [as resolver] (http://localhost:4200/assets/vendor.js:15276:23)
at resolve (http://localhost:4200/assets/vendor.js:12768:29)
I looked up the error and found this stack overflow question
Do I need to make a serializer for the item to tell it what the primary key is?
If you’re curious here is what a bid looks like
Also it would be really nice to only pull up bids for that particular item rather than all the bids, since when this gets hooked up to a server it will be a lot of bids.