简体   繁体   English

如何在不同的Web应用程序中使用一个angularjs应用程序?

[英]How to use one angularjs app in a different web application?

I have made an angularjs app and I want to use it in another web application (eg. C# .Net,JAVA). 我已经做了一个angularjs应用程序,我想在另一个Web应用程序中使用它(例如C#.Net,JAVA)。 I have another web app (which does not use angularjs) and when I click a button it should be redirected to my angularjs app to use the functionalities. 我有另一个Web应用程序(不使用angularjs),当我单击按钮时,应将其重定向到我的angularjs应用程序以使用功能。 How can I achieve this? 我该如何实现? Thanks! 谢谢!

IMO, for C# Web App, you can use RedirectPermanent("<AngularJsApplicationFeaturePageUrl>") ; IMO,对于C#Web App,可以使用RedirectPermanent("<AngularJsApplicationFeaturePageUrl>") ; spend time in AngularJs application and when it completes, AngularJs Web Application is responsible for redirecting us to appropriate page in C# Web App. 花时间在AngularJs应用程序中,当它完成时,AngularJs Web应用程序负责将我们重定向到C#Web App中的相应页面。

For Example, 例如,

  1. You might have experienced it in e-commerce apps. 您可能在电子商务应用程序中经历过。 For buying\\ checking-out items, you will be redirected to Bank's fund transfer page. 对于购买\\结帐项目,您将被重定向到银行的资金转移页面。 When you are done, Bank website will redirect you to original e-commerce app. 完成后,银行网站会将您重定向到原始的电子商务应用程序。

  2. You are seeing in Identity Module Providers like Azure Active Directory , Google Single Sign On ,.. redirects you to its login page to challenge your identity and posts you back to original website. 您会在身份模块提供程序(如Azure Active DirectoryGoogle Single Sign On ,..)中看到您将其重定向到其登录页面,以挑战您的身份并将您发回到原始网站。

You can find a ton of examples for above use cases. 您可以找到上述用例的大量示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何运行一个使用具有不同次要版本号的dll的Web应用程序? - How to run one web application that uses dlls with different minor builds? 在一个应用程序中使用不同版本的dll文件 - Use different versions of dll file in one app 是否可以对Function App和Web App使用单个Application Insights实例 - Is it possible to use single Application Insights instance for a Function App and a Web App 如何在不同的Web应用程序之间共享文件 - How to share files between different web application 如何在不同的基于Owin的相关MVC应用程序和Web API之间使用一个用户凭证? - How to use one user credential across different related Owin-based MVC apps and web APIs? 如何发现和加载一个Web应用程序到另一个? - How to discover and load one web application into another? 如何在一个ASP.NET MVC C#应用程序中使用两个具有关系的不同数据库 - How to use two different database with relation in one asp.net mvc c# application 可以在default.aspx Web应用程序中使用sql查询 - Can one use sql query in default.aspx web application 在两个不同的 Web 服务器上托管一个 Web 应用程序和 Web API 项目,该项目使用 IP 地址 - Host a Web application and Web API Project that Use IP Address on Two different Web Servers 在 web 应用程序中的何处以及如何使用拦截器? - Where and how to use interceptors in web application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM