Last active
August 29, 2015 14:09
-
-
Save msfrisbie/5dfd1b455e2dec7865e3 to your computer and use it in GitHub Desktop.
Routing
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
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