Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. export class BestViewModel {
  2. doBestStuff() { }
  3. }
  4.  
  5. import { inject } from 'aurelia-framework';
  6.  
  7. @inject(BestViewModel)
  8. export class SecondBestViewModel {
  9.  
  10. constructor(BestViewModel) {
  11. this.best = BestViewModel;
  12. }
  13.  
  14. doBetterStuff() {
  15. this.best.doBestStuff();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement