Click here to Skip to main content
15,891,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
From few days , i am very much confused about some symptoms that are listed below

Is this your flow ?
1) Angular Service or module calling => MVC Controller Action calling => Web API controller method => Business Method => Data Method => Database Query

or 

2) Angular Service or module calling => Web API controller method => Business Method => Data Method => Database Query

If you are not creating MVC controller and actions then i think doesn't need to MVC project we can directly call "Web API controller method" from "Angular Service or module"

If only Angular project files will be there then what about server side code? 
Is there all logic from JS files? If it is then everyone can access our js files and javascript can be denied by browser.

And last , if possible please suggest some basic building block of an Angular and MVC(if any) combined project structure

Can someone please explain how people are actually doing in big projects(i mean real-world projects).


What I have tried:

Tried to find something for that

But not able to get as per my confusion
Posted
Updated 15-Jan-18 2:06am

1 solution

I will suggest using Web API controllers. In my current project(real world one) the workflow is like this:
Angular Service => Web API controller method => Business Method => Data Method => Database Query(using Entity framework)


We are using Entity Framework and Code First approach also.
For security, we are using JWT authentication.
Hope this is helpful to you to some extent.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900