【发布时间】:2020-08-15 23:48:14
【问题描述】:
我正在使用 Angular 7 将应用导航到 https:www.google.com,
constructor( public router: Router ) {
this.router.navigateByUrl("https://www.google.com");
}
但它给了我错误提示
core.js:15724 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'https:'
Error: Cannot match any routes. URL Segment: 'https:'
at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (router.js:2469)
有什么方法可以传递它吗?
【问题讨论】:
标签: angular