[英]Angular 8, How can I send the userinformation I recieve from a http call in a service with subscribe to another component?
[英]Another application is sending on my Url params How can i recieve it in angular?
我有一個Core項目,我正在以角度7工作。我正在開發另一個付費應用程序,我發送客戶端參數,之后,其他應用程序進行付款,之后該應用程序在我的Core項目的URL中發布一些參數。 我想收到這些參數。 這怎么可能有角度?
您可以使用路由中的queryParams訂閱它們。
constructor(private route: ActivatedRoute) { }
ngOnInit() {
this.route.queryParams
.subscribe(params => {
console.log(params);
});
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.