Skip to content

Commit 108501a

Browse files
brandonrobertshybrist
authored andcommitted
docs(@angular/ssr): update examples for withRoutes configuration
(cherry picked from commit 6fb85b2)
1 parent 03e3bfc commit 108501a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/angular/ssr/src/routes/route-config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,19 @@ export const SERVER_ROUTES_CONFIG = new InjectionToken<ServerRoutesConfig>('SERV
233233
*
234234
* const serverRoutes: ServerRoute[] = [
235235
* {
236-
* route: '', // This renders the "/" route on the client (CSR)
236+
* path: '', // This renders the "/" route on the client (CSR)
237237
* renderMode: RenderMode.Client,
238238
* },
239239
* {
240-
* route: 'about', // This page is static, so we prerender it (SSG)
240+
* path: 'about', // This page is static, so we prerender it (SSG)
241241
* renderMode: RenderMode.Prerender,
242242
* },
243243
* {
244-
* route: 'profile', // This page requires user-specific data, so we use SSR
244+
* path: 'profile', // This page requires user-specific data, so we use SSR
245245
* renderMode: RenderMode.Server,
246246
* },
247247
* {
248-
* route: '**', // All other routes will be rendered on the server (SSR)
248+
* path: '**', // All other routes will be rendered on the server (SSR)
249249
* renderMode: RenderMode.Server,
250250
* },
251251
* ];

0 commit comments

Comments
 (0)