Working with Angular 4 and .Net the right way - WebApi
As already stated, Angular is Framework for Singe Page Applications. so its NOT for Websites that wants a good enhancement for their pages. but.... we love Angular so we do want to learn how to do that, but lets start at the beginings 1st lets just create a simple SPA app with WebApi(v2), and see how the thing works. as stated, this tutorial is not to learn how to code, so i'm using the Basic MSDocs example for webApi as is, just copy paste and make sure its working, and DO try to understand. in the end its just a RestfulAPI. *MAKE SURE you allow CORS for the webApi since we're doing all this at localhost, so add to the web.config (msdn) so we now have these 2 rest urls (you might have a different localhost port like localhost:493820 http://localhost:57267/api/products http://localhost:57267/api/products/1 => [id] great, now we will create an SPA app with 2 tabs, 1 for all and 1 for search. if you never coded in Angular 4, see this coursetro nice tutorial...