Created
March 12, 2017 12:47
-
-
Save brakmic/2ef3a1889838cb05aab1751228f63505 to your computer and use it in GitHub Desktop.
click handler for module selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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