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 ?
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.
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).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With