Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With AngularJs + Web API, why we need ASP.NET MVC and IIS?

With AngularJs + Web API, why we need ASP.NET MVC and IIS?

Can I just use AngularJS plus WEB API to develop a web application without IIS and ASP.NET MVC ?

like image 818
Tony Bao Avatar asked Oct 26 '13 16:10

Tony Bao


People also ask

What is the use of AngularJS in ASP.NET MVC?

AngularJS can complement the server-side technology, ASP.NET MVC by simplifying and reducing the operations performed by the server. The JavaScript technology supports template engine, dependency injection and routing engine of its own.

Should I use MVC or Web API?

You should use Web API over ASP.Net MVC if you would want your controller to return data in multiple formats like, JSON, XML, etc. Also, specifying the data format in Web API is simple and easy to configure. Web API also scores over ASP.Net MVC in its ability to be self-hosted (similar to WCF).

Why Angular is better than ASP.NET MVC?

Angular does away with the problem of mixing client and server code within the same file. Razor syntax allows the developer to embed client and server code within the same file and to use server-side logic to control the client-side presentation. Angular decouples the client-side processing completely from the server.


1 Answers

With AngularJs + Web API, why we need ASP.NET MVC and IIS?

By off-loading all the logic onto the client without providing a server side fallback, you cause the site to break when the JS doesn't load, including for search engine indexing bots.

Can I just use AngularJS plus WEB API to develop a web application without IIS and ASP.NET MVC ?

Yes, it will just be fragile and invisible to search engines.

like image 123
Quentin Avatar answered Oct 08 '22 11:10

Quentin