angular - How to access the angular application route with parameter from another application
问题描述
I have a requirement where One application will have a link and on the click of that link I need to open a angular application with query parameter in the URL.
something like this
https://myapplicationdomain.com/search/12345678
I have a default route which is /search
so wherever the application loads it goes to search route and there I am using parameter to search.
this is not working because when I click on the URL its not loading the application with https://myapplicationdomain.com/search/12345678
and says Page not found
What configuration I need to do to make this possible.
解决方案
您需要正确设置您的网络服务器,这样它才能正确地为您的应用程序提供服务。 https://angular.io/guide/deployment#fallback-configuration-examples - 在这里检查一切!希望能帮助到你!
推荐阅读
- javascript - 尝试从不同的函数中使用 Async 和 Await
- r - 使用 R 中更改的数据和变量名称运行相同的代码
- c++ - 如何测试文件是否被锁定和/或只读而不打开?
- python - 使用 Python 的密码保护 zip 文件
- amazon-web-services - Amazon Cognito - 有没有办法绕过注册前 Lambda 触发器
- python - 避免在 matplotlib 中的 X 轴上排序,并用多个 y 轴绘制公共 X 轴
- sql - 如何以直接、简单的方式获取 MS SQL Server 和数据库空间信息
- python - 同时运行多个使用用户输入和while循环的python脚本
- php - $request 根据我转储它的位置返回不同的值
- amazon-web-services - AWS:Lambda 权限策略可以使用通配符从目标组获取源吗?