Permalink
Browse files

fix(paged): inject the EntityManager

  • Loading branch information...
jeremyvergnas committed Feb 10, 2017
1 parent bf65e2b commit e77e73386b578d6a587e1d574994135ac36ce4e6
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/component/paged.js
@@ -1,8 +1,10 @@
import {logger} from '../aurelia-orm';
import {logger, EntityManager} from '../aurelia-orm';
import {bindingMode} from 'aurelia-binding';
import {bindable, customElement} from 'aurelia-templating';
import {inject} from 'aurelia-dependency-injection';
@customElement('paged')
@inject(EntityManager)
export class Paged {
// https://github.com/aurelia/templating/issues/73, you still had to set `data` on .two-way when global
@@ -14,6 +16,10 @@ export class Paged {
@bindable resource
@bindable limit = 30;
constructor(entityManager) {
this.entityManager = entityManager;
}
/**
* Attach to view
*/

0 comments on commit e77e733

Please sign in to comment.