fix(RouterLink): ignore optional parameters when checking for active routes
fixes #6459 Closes #7834
This commit is contained in:
@ -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() {
|
||||
|
@ -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');
|
||||
});
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user