Skip to content

Instantly share code, notes, and snippets.

@brakmic
Created March 12, 2017 12:47
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 brakmic/2ef3a1889838cb05aab1751228f63505 to your computer and use it in GitHub Desktop.
Save brakmic/2ef3a1889838cb05aab1751228f63505 to your computer and use it in GitHub Desktop.
click handler for module selection
/**
* Click handler for vr module selections (sidebar on the left)
* Check app.routes.ts for more info on angular2 routing
*
* @private
* @param {*} event
*/
private onVrModuleSelected(event: any) {
const params = {
id: event.module.id
};
this.activeVrModule = event.module;
this.router.navigate([`modules`, params], { relativeTo: this.route });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment