Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { bindable } from 'aurelia-framework';
- import { Container } from 'aurelia-dependency-injection';
- import { EventAggregator } from 'aurelia-event-aggregator';
- import { DataStore } from './../../../common/services/data-stores/data-store';
- import { StorageService } from './../../../common/services/storage-service';
- export class BaseCustomElement {
- @bindable cache;
- @bindable eventAggregator;
- @bindable dataStore;
- constructor() {
- let container = Container.instance;
- this.eventAggregator = container.get(EventAggregator);
- this.cache = container.get(StorageService);
- this.dataStore = container.get(DataStore);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment