We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
route#getInfinityModels()
import InfinityModel from 'ember-infinity/lib/infinity-model'; const CustomInfinityModel = InfinityModel.extend({ //..snip }) export default Route.extend({ model() { return this.infinityModel('product, { perPage: 10, startingPage: 1 }, CustomInfinityModel); } })
Ref #220
Will tackle after #220
The text was updated successfully, but these errors were encountered:
More notes
// new way const MyInfinityModelClass = InfinityModel.extend({ global: service(), buildParams() { let params = this._super(...arguments); params['category_id'] = get(this, 'global.categoryId'); return params; } }); Route.extend({ global: service(), categoryId: computed('global.categoryId', function() { return get(this, 'global.categoryId'); }), model() { this.infinityModel('product', {}, MyInfinityModelClass); } });
Sorry, something went wrong.
I'll make sure I get this issue done by the end of next week to add to the 1-0 branch.
Thankyou!!
closing this after #236 was merged. Still have one checkbox outstanding. Jotting that down for another issue.
snewcomer
No branches or pull requests
route#getInfinityModels()
Ref #220
Will tackle after #220
The text was updated successfully, but these errors were encountered: