2

While MVC itself has routing feature why should we use angularjs routing? I am expecting an answer apart from just addressing server side and client side issues

1 Answer 1

2

It's a design decision, so it's impossible to give a definitive answer as to why you should use one or the other. MVC has its own routing because it's a server-side web application framework. AngularJS has its own routing because it's a client-side web application framework. You can use one or the other or both in mixed degrees. I'm not sure what kind of answer you're expecting, but it entirely boils down to whether you want to rely more on server-side or client-side, and even then, where and to what degree. You could have portions of your site that rely entirely on Angular and essentially function as a SPA, while other parts would rely entirely on MVC with nothing going on client-side.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.