本文整理匯總了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) => {