本文整理汇总了TypeScript中@angular/router-deprecated.Router.navigate方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Router.navigate方法的具体用法?TypeScript Router.navigate怎么用?TypeScript Router.navigate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/router-deprecated.Router
的用法示例。
在下文中一共展示了Router.navigate方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onSelect
onSelect(person: Contact) {
this._router.navigate(['ContactDetails', {id: person.id}])
}
示例2: gotoDetail
gotoDetail() {
let link = ['LeaderDetails', { id: this.selectedLeader.id }];
// console.log('HELLO:', link);
this._router.navigate(link);
}
示例3: gotoServiceDetails
gotoServiceDetails(service: Service) {
let link = ['ServiceDetailsPage', { url: service.url }];
this._router.navigate(link);
}
示例4: gotoQuiz
gotoQuiz(){
this.router.navigate(['Quiz']);
}
示例5: onSelect
onSelect(chamada: Chamada) {
console.log("teste");
this._router.navigate(['ChamadaUpdate', { id: chamada.id }]);
}
示例6:
.then(character => this.router.navigate(['Characters']))
示例7: gotoPeoplesList
gotoPeoplesList(){
let link = ['Persons'];
this._router.navigate(link);
//window.history.back();
}
示例8: navigateToDashboard
navigateToDashboard() {
this._router.navigate(["Dashboard"]);
}
示例9: editProject
editProject(project) {
this._router.navigate(["EditProject", {id: project._id}]);
}
示例10:
.subscribe((response) => {
this._router.navigate(['Index'])
}, (error) => {