Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class BestViewModel {
- doBestStuff() { }
- }
- import { inject } from 'aurelia-framework';
- @inject(BestViewModel)
- export class SecondBestViewModel {
- constructor(BestViewModel) {
- this.best = BestViewModel;
- }
- doBetterStuff() {
- this.best.doBestStuff();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement