Single Page Application
What, Why, and How. That’s the main question.
SPA (single page application) is a web app or site that only have ‘one page’ so you did not need to make too much page request. The popular example is gmail website. SPA is the new trend several years ago until now.
Okay, then How?
There are a lot of JS framework that can help you, like i used today, AngularJS!
As a programmer who familiar with MVVM and data-binding concept, this framework help me so much. You just define the ViewModel (in angular, we use called
Controller), you can attach the data model using directive
below some cool example:
See that? you just update the property, without call any method, the model will be updated seamlessly. I am still trying explore this one.
You can check my repository to follow what i’ve done so far with AngularJS and ASP.NET Core.