feat(router): do not support paths starting with /

This commit is contained in:
vsavkin
2016-06-16 14:14:09 -07:00
parent 2773281338
commit 7e12208ca6
4 changed files with 11 additions and 11 deletions

View File

@ -55,7 +55,7 @@ describe('recognize', () => {
it('should set url segment and index properly (nested case)', () => {
const url = tree("a/b/c");
recognize(RootComponent, [
{ path: '/a/b', component: ComponentA, children: [
{ path: 'a/b', component: ComponentA, children: [
{path: 'c', component: ComponentC}
] },
], url, "a/b/c").subscribe((s:RouterStateSnapshot) => {