Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

angularJS 1.X App with .NET CORE backend #2963


User avatar
0
daws created

Hello there,

my current project is #3 ASP.NET MVC 5.x + ANGULARJS 1.x. i would like to go to #1 ASP.NET CORE + ANGULAR 4.x

but ... i've a custom angular app (another than the Dashboard) that will remains in angular 1.X for at least 2017.

i would like to know the possibility to use ASP.NET CORE + angular 4.X Dashboard + custom app angular 1.X.

knowing that this custom app uses permissions, features, AppService from backend.

Does JS interfaces with AppServices are the same in the latest project and old ?

or does all abp. services in JS are migrated to angular2 ? or maybe i can use the new abp. services for Dashboard; and the old one with angular 1.X; if the backend is still the same.

thanks for your help


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    What you are thinking is possible but it requires some extra work. First, ASP.NET Core uses conventional HTTP verbs but angular1 version uses POST for all requests.

    You can disable conventional HTTP verbs for ASP.NET Core, regenerate proxies for that and fix errors in typescript files. There is a bat file in solution which refreshes typescript proxies automatically.

    For angular1 side, you can still use GetScripts action to generate client side scripts.

    There might be some points which I cannot remember right now but we can help you if you face any problems.

    Thanks.

  • User Avatar
    0
    daws created

    Thanks for your reply ;)

    i'll think a little bit more about that; but I think it will be easier for me to maintain the ANZ MVC 5.X in my project for few more months, & try to migrate my whole app in angular2 in the same time.

    it will save me/you some time :)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks :)