[英]How to configure route on the basis of url parameters from different application.
There are 5 links on java application, when user click on those, then each link will open each angular form on the basis of parameters passed on those links. java应用程序有5个链接,当用户点击这些链接时,每个链接将根据这些链接传递的参数打开每个角度表单。 How do I configure my route for this scenario in angular.
我如何在 angular.js 中为这个场景配置我的路线。
Okay so this scenario you can implement with below steps :好的,您可以通过以下步骤实现此场景:
In your application create all 5 routes which are required, pass that route name in your links in a parameter.在您的应用程序中创建所有 5 条必需的路由,在参数的链接中传递该路由名称。
In your Java Application: create all 5 URLs Like :在您的 Java 应用程序中:创建所有 5 个 URL,例如:
http://youapplication.com/authenticate?name=routeName http://youapplication.com/authenticate?name=routeName
So here Authenticate is predefined component & routes in my application so all links will throw on the same route and inside ngOnInit method based on parameter Name we will redirect to that routes.所以这里 Authenticate 是我的应用程序中预定义的组件和路由,因此所有链接都将在同一路由上抛出,并且在基于参数 Name 的 ngOnInit 方法中,我们将重定向到该路由。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.