Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ASP.NET Core: Cloud-ready, Enterprise Web Application Development

You're reading from   ASP.NET Core: Cloud-ready, Enterprise Web Application Development Create fast, scalable, and high-performance applications with C# and ASP.NET Core

Arrow left icon
Product type Course
Published in Jun 2017
Publisher Packt
ISBN-13 9781788296526
Length 1083 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Mugilan T. S. Ragupathi Mugilan T. S. Ragupathi
Author Profile Icon Mugilan T. S. Ragupathi
Mugilan T. S. Ragupathi
Valerio De Sanctis Valerio De Sanctis
Author Profile Icon Valerio De Sanctis
Valerio De Sanctis
James Singleton James Singleton
Author Profile Icon James Singleton
James Singleton
Arrow right icon
View More author details
Toc

Chapter 2. ASP.NET Controllers and Server-Side Routes

Now that we have our skeleton up and running, it's time to explore the client-server interaction capabilities of our frameworks. To put it in other words, we need to understand how Angular 2 will be able to fetch data from ASP.NET Core using its brand new Core Web API structure. We won't be worrying about how will ASP.NET Core retrieve these data, be it from session objects, data stores, DBMS, or any possible data source. All of that will come later on. For now, we'll just put together some sample static data in order to understand how to pass them back and forth by using a well-structured, highly configurable, and viable interface.

Data flow

As you might already know, a Native Web App following the single-page application approach will roughly handle the client-server communication in the following way:

Data flow

In case you're wondering about what these Async Data Requests actually are, the answer is simple: everything...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image