【发布时间】:2019-10-11 13:04:32
【问题描述】:
如何根据某些功能的结果重定向到 Angular 6 中的其他组件?
Login(){
console.log(this.LoginModel);
this.userService.LoginUser(this.LoginModel).subscribe(
result =>{
if(result == null)
console.log("Loged in successfully");
/// here i want to go to dashboard component (router with path dashboard)
},
error =>{
console.log("Login - error");
}
);
}
【问题讨论】:
标签: angular routing communication