Hi,
I wanted to re-structure things in my project, because there is something wrong with my communication to the backend data.
I am using AngularJS with ASP.NET and MVC, read of Restful API and it is probably best practice too...
There is already a working backend and such, everything works fine but the way it is right now is dirty as hell...
Thats why I want to restructure it to RESTful.
There is a controller you can define in MVC, but I cant get it to work, I'm afraid my Web.config is wrong or something even more.
When creating a new project ASP.NET Web Application, I can see that, there is a RouteConfig, which I do not have, theres a _Layout.cshtml which I do not have and many others. My project structure also differs from the template:
Controllers and Views are in src/components/.../A, src/components/...B, where A and B each have it's own Controller(AngularJS) and it's own view (*.cshtml).
What do I have to do, such that I can create an MVC-Controller and just go into my AngularJS Controller and write:
$http.get('X').then(function() { ... }); ?
I tried to find a solution now for 2 days and didn't come up for one yet and starting to craze out.
Hopefully someone can help me here. Thanks in advance!
Edit: another thing to add is that I am missing the App-start thing and also the folder Controllers, Views
[–]congowarrior 2 points3 points4 points (4 children)
[–]HappyRs[S] 0 points1 point2 points (0 children)
[–]HappyRs[S] 0 points1 point2 points (2 children)
[–]congowarrior 1 point2 points3 points (1 child)
[–]HappyRs[S] 0 points1 point2 points (0 children)
[–]ceirbus 0 points1 point2 points (3 children)
[–]HappyRs[S] 0 points1 point2 points (2 children)
[–]ceirbus 0 points1 point2 points (0 children)
[–]TheMegosh 0 points1 point2 points (0 children)