10 lines
299 B
JavaScript
10 lines
299 B
JavaScript
import Helper from '@ember/component/helper';
|
|
import { getOwner } from '@ember/application';
|
|
|
|
export default class CachedHelper extends Helper {
|
|
compute([model, params], hash) {
|
|
const container = getOwner(this);
|
|
return container.lookup(`service:repository/${model}`).cached(params);
|
|
}
|
|
}
|