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

How can i call more service on angular project #6858


User avatar
0
kwanp created

Hi my project type asp.net core + angular and i create 3 separate projects on asp.net core with diferrent db name and i want angular clients side to call the 3 separate services that i provide, it is possible if this possible can you please give some example

Thank you


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

    Do these projects use the same identity authentication?

  • User Avatar
    0
    kwanp created

    yes i will clone identity authentication to others service

    if not the same identity authentication can i pass some parameter when user click

    Thank you

  • User Avatar
    0
    maliming created
    Support Team

    You can use nswag to create an angular proxy service for each project.

    https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/shared/service-proxies/service-proxies.ts

    Service-proxies.ts
    Service-proxies-2.ts
    Service-proxies-3.ts
    

    Of course you need to use the same authorization.