What is a single-page application (SPA)?

Angular basics · Freshers

Model answer

A single-page application loads one HTML page and then updates the content in the browser with JavaScript as the user moves around, instead of asking the server for a full new page each time. Angular does this with its router: changing the URL swaps the components shown on screen.

The benefits are a faster, app-like feel after the first load. The costs are a heavier first download and extra work for search engines, which is why server-side rendering is often added for public pages.

Tips

Learn this topic

Angular Tutorial: Beginner to Advanced .

Sign in to add your own answer.

More questions