Embedding Angular Component into existing aspx pages.

kushal kashyap 1 Reputation point
2022-08-09T06:39:19.397+00:00

Hi,
We have a legacy application written in ASP.NET web forms which we would like to modernize to Angular + .NET API. We cannot re-write whole application in a go due to capacity issues. So, we plan to migrate module by module. I think I should create different application (Angular + API), host that within existing asp.net website and create a hyper link between existing and re-written modules?

Is there any other better way? Please share any samples if possible.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,287 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
    2022-08-10T06:53:43.673+00:00

    Hi @kushal kashyap ,
    You can use AngularJS in your existing web application.
    You can add AngularJS scripts (angular.js) to the master page and then put custom JavaScript code (controllers, services, etc.) in the ASP.NET Scripts folder,
    or create a structure in the Scripts folder for clarity separate content. AngularJS is just JavaScript.
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments