It sounds a bit strange, but I will explain what I want to do.
I currently have an MVC website written in C# that is using Razor Views. In the same project I added an API which I can access like this : www.mysite.com/api/controller/get.
Normal pages can be accessed simply by www.mysite.com/controllername/index.
Now the problem is I recreated the website with angular 2, and now I need to publish the site online, I mean completely replace the mvc project.
My solution 1 is to separate the angular app and the api: So, I publish the angular web site on www.mysite.com and publish the api on api.mysite.com.
Solution 2?: I was wondering if it was possible to simply replace the MVC part of my current project by the angular 2 app? So everything stays on the same domain. (aka same project)
Edit: If solution 2 is possible: how do you include the angular 2 app inside the project without routes conflicting with the mvc project. In other words, I want to remove the MVC routes.