refactor(router): rename navigate and navigateInstruction methods

This commit is contained in:
Brian Ford
2015-09-08 21:41:56 -07:00
parent 5e49d7e624
commit acc2722cb8
17 changed files with 126 additions and 125 deletions

View File

@ -64,7 +64,7 @@ export function main() {
expect(applicationRef.hostComponent.location.path()).toEqual('/parent/child');
async.done();
});
router.navigate('/parent/child');
router.navigateByUrl('/parent/child');
});
}), 1000);
@ -78,7 +78,7 @@ export function main() {
expect(applicationRef.hostComponent.location.path()).toEqual('/after');
async.done();
});
router.navigate('/before');
router.navigateByUrl('/before');
});
}), 1000);
@ -92,7 +92,7 @@ export function main() {
expect(applicationRef.hostComponent.location.path()).toEqual('/hello');
async.done();
});
router.navigate('/hello');
router.navigateByUrl('/hello');
});
}), 1000);
@ -107,7 +107,7 @@ export function main() {
expect(applicationRef.hostComponent.location.path()).toEqual('/hello');
async.done();
});
router.navigate('/hello');
router.navigateByUrl('/hello');
});
}), 1000);