Skip to content

Instantly share code, notes, and snippets.

@msfrisbie
Last active August 29, 2015 14:09
Show Gist options
  • Save msfrisbie/5dfd1b455e2dec7865e3 to your computer and use it in GitHub Desktop.
Save msfrisbie/5dfd1b455e2dec7865e3 to your computer and use it in GitHub Desktop.
Routing
https://github.com/angular/router
https://github.com/angular/router/tree/master/examples
Will be backported to 1.3 soon!
router.configure(config => {
config.map([
{ pattern: ['', 'intro'], componentUrl: 'intro' },
{ pattern: 'one', componentUrl: 'one', nav: true, title: 'Question 1' },
{ pattern: 'two', componentUrl: 'two', nav: true, title: 'Question 2' },
{ pattern: 'three', componentUrl: 'three', nav: true, title: 'Question 3' },
{ pattern: 'end', componentUrl: 'end' },
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment