Free auditStart free
GuideAngular · Framework guide

Angular SEO

Make Angular pages discoverable by choosing SSR or prerendering where it helps, then set route titles and verify rendered output.

5 min
read
4
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Angular is client-side rendered by default. For public routes, evaluate SSR or prerendering with @angular/ssr; use client rendering for private or highly interactive routes. Set route titles with the Router's title property, add descriptions with Angular's Meta service, and provide canonical links in rendered HTML. Verify the initial response, route status, and sitemap after deployment.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01How it works

Choose rendering per route

Angular ships applications as client-side rendered by default. In CSR, the browser downloads and runs JavaScript before it displays the route's content. Angular's documentation says client-side rendering "may negatively affect" SEO because "search crawlers have limits to how much JavaScript they execute". Angular's SSR package supports server rendering and build-time prerendering; a hybrid app can select a mode route by route.
Rendering options and tradeoffs
ModeFitsSEO and operations check
Prerender / SSGPublic pages with content known at build time.Initial HTML is ready for crawlers and users; large route sets increase build output and deployment size.
SSRPublic pages that need fresh server data per request.Content renders on the server, but requires a runtime and code that works without browser-only APIs.
CSRPrivate, user-specific, or highly interactive application routes.Fastest to keep client-only, but do not rely on it for important search content without validating crawler rendering.
  1. 01

    Add Angular SSR if routes need server output

    For an existing project, run ng add @angular/ssr. For a new project, pass --ssr to ng new. Angular says that by default it prerenders your entire application and generates a server file; set outputMode to static for a fully static app, or switch routes to RenderMode.Server for SSR. Confirm your host can run the server file if you keep it.

  2. 02

    Assign a mode to each route

    Use server route configuration to select RenderMode.Prerender, RenderMode.Server, or RenderMode.Client. Use prerendering for stable public pages and SSR for pages whose content must be current at request time.

  3. 03

    Check build cost for dynamic pages

    Angular says prerendering "may add significant time to your production builds" and that using getPrerenderParams to produce many documents may affect total deployment size. Measure the build. Prerendered pages cannot include data specific to the user loading the page. Paths you do not prerender fall back to server rendering by default; fallback can be set to Client or None.

02Checklist

Set titles and descriptions from route data

Angular Router supports a title property on route definitions and updates the document title when a route activates. For titles that need shared branding or custom composition, provide a TitleStrategy. Angular's Meta service manages HTML <meta> tags, so use it for description, Open Graph, and other tags. Put route-specific metadata next to the route data so titles describe the page that actually renders.
  1. 01Give indexable routes a distinct title and useful description. Avoid applying the same generic metadata to every route through the root component.
  2. 02Resolve dynamic titles from the same record used to render the page and handle missing records as not found.
  3. 03Use the Meta service to update tags safely. Test client navigation as well as a direct request, because the first response and later route transitions can differ.
  4. 04Add a canonical link for duplicate route variants and confirm it uses the production HTTPS host and the intended path.
  5. 05Do not put search-critical content only behind an interaction that never appears in the initial HTML when using SSR or prerendering.
Route titles
export const routes: Routes = [
  { path: 'about', component: AboutPage, title: 'About Acme' },
  { path: 'products/:slug', component: ProductPage, title: productTitleResolver },
]
03How it works

Publish the routes search engines should see

Angular's SSR package renders route content; your deployment still needs correct status codes, canonical URLs, robots rules, and sitemap coverage. A generated sitemap should come from the same content inventory as the routes. List public canonical URLs only, not client-only account pages, preview URLs, or redirect sources.
  1. 1

    Inspect the first HTML response

    Request a representative route directly and view source or response HTML. Confirm the page title, description, canonical, main heading, and primary content are present without waiting for hydration.

  2. 2

    Check status handling

    Verify unknown routes return a real 404 and moved URLs return an HTTP redirect. Angular's SSR guide says redirectTo is a standard HTTP redirect (301, 302) under SSR but a soft redirect (<meta http-equiv="refresh">) in prerendered HTML, and server routes accept headers and status properties. Use host-level HTTP redirects for permanent moves of prerendered pages.

  3. 3

    Create and submit a sitemap

    Generate a sitemap from the URLs actually deployed, reference it from robots.txt, and submit it to Search Console. Check all URL families and ensure they resolve successfully.

  4. 4

    Test structured data

    Angular's SSR guide says to avoid referencing browser globals like document directly and to inject the DOCUMENT token instead; its example injects a <link rel="canonical"> during server rendering. Use the same route for JSON-LD so it exists in the response, and keep schema values consistent with visible page content.

Use the XML sitemap overview to decide what belongs in the file. A sitemap helps discovery but does not guarantee that Google will index each route.

Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • angular.dev
  • google.com
  1. 01Server-side and hybrid rendering | Angularangular.dev · checked 2026-10-24
  2. 02Define routes | Angularangular.dev · checked 2026-10-24
  3. 03Meta | Angular APIangular.dev · checked 2026-10-24
  4. 04JavaScript SEO basics | Google Search Centraldevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Is Angular SEO-friendly?

Angular can serve crawlable pages, but client-side rendering is the default. Use SSR or prerendering for routes where complete initial HTML and search discovery matter, then verify the deployed response.

02How do I set a title for each Angular route?

Set the Router's title property in route definitions, or use a resolver for data-dependent titles. Use TitleStrategy for centralized title composition.

03Does Angular generate an XML sitemap?

Angular's SSR package handles rendering, not a complete site sitemap. Generate one from the public routes your app actually serves and submit it in Search Console.

04Should every Angular route use SSR?

No. Use prerendering or SSR for useful public content, and client rendering for routes whose content is private or user-specific. Choose based on data freshness, crawl needs, build cost, and hosting.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane