Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am trezm on github.
  • I am mertz (https://keybase.io/mertz) on keybase.
  • I have a public key whose fingerprint is 67FE 77D4 16AD 7340 5127 6834 AAE1 394E E477 FFF3

To claim this, I am signing this object:

@trezm
trezm / App.ts
Last active August 29, 2015 14:26
Angular 2 Routing
/// <reference path="typings/angular2/angular2.d.ts"/>
/// <reference path="typings/angular2/router.d.ts"/>
import { Component, View, bootstrap, bind } from 'angular2/angular2';
import { routerInjectables, RouteConfig, RouterOutlet, RouterLink } from 'angular2/router';
import { LocationStrategy, Location, HTML5LocationStrategy, HashLocationStrategy, appBaseHrefToken } from 'angular2/router';
// Annotation section
@Component({
selector: 'my-app'
[
// { "key": "ctrl+p", "command": "cursorUp", "when": "editorTextFocus" },
// { "key": "ctrl+n", "command": "cursorDown", "when": "editorTextFocus" },
// { "key": "ctrl+b", "command": "cursorLeft", "when": "editorTextFocus" },
// { "key": "ctrl+f", "command": "cursorRight", "when": "editorTextFocus" },
// { "key": "ctrl+a", "command": "cursorHome", "when": "editorTextFocus" },
// { "key": "ctrl+e", "command": "cursorEnd", "when": "editorTextFocus" },
// { "key": "ctrl+d", "command": "deleteRight", "when": "editorTextFocus" },
// { "key": "alt+w", "command": "editor.action.clipboardCopyAction" },
// { "key": "ctrl+w", "command": "editor.action.clipboardCutAction" },