Client-side routing is the same as server-side routing, but it runs in the browser.
In a typical web application, you have several pages that map to different URLs, and each of the pages has some logic and a template that is then displayed.
Client-side routing simply launches this process in the browser using JavaScript for logic and some JS-based template engine or other similar approaches for rendering pages.
It is commonly used in single-page applications, where server-side code is mainly used to provide a RESTful API that uses client-side code through Ajax.
Jani Hartikainen May 6 '12 at 18:58 2012-05-06 18:58
source share