Skip to content

Instantly share code, notes, and snippets.

@hakant
Created April 4, 2016 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakant/27562e37df6d7bf59f24fd12b316045a to your computer and use it in GitHub Desktop.
Save hakant/27562e37df6d7bf59f24fd12b316045a to your computer and use it in GitHub Desktop.
import {Router} from "aurelia-router";
import {inject} from 'aurelia-framework';
import {AuthService} from './infrastructure/auth-service';
@inject(Router, AuthService)
export class NavBar {
constructor(router, auth) {
this.router = router;
this.auth = auth;
}
NewCard() {
this.router.navigateToRoute('newIdea');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment