fix(RouterLink): ignore optional parameters when checking for active routes

fixes #6459
Closes #7834
This commit is contained in:
Victor Berchet
2016-03-30 11:26:31 -07:00
parent 28e657d857
commit 5e2bc5c593
6 changed files with 32 additions and 10 deletions

View File

@ -34,7 +34,7 @@ import {DOM} from 'angular2/src/platform/dom/dom_adapter';
import {ResolvedInstruction} from 'angular2/src/router/instruction';
let dummyInstruction = new ResolvedInstruction(
new ComponentInstruction('detail', [], null, null, true, '0'), null, {});
new ComponentInstruction('detail', [], null, null, true, '0', null, 'Detail'), null, {});
export function main() {
describe('routerLink directive', function() {

View File

@ -259,7 +259,7 @@ export function main() {
async.done();
});
router.navigateByUrl('/better-child');
router.navigateByUrl('/better-child?extra=0');
});
}));
@ -300,7 +300,7 @@ export function main() {
async.done();
});
router.navigateByUrl('/child-with-grandchild/grandchild');
router.navigateByUrl('/child-with-grandchild/grandchild?extra=0');
});
}));