From 3b0a02ec6e0f72be228c6da6dd94de6f96d01f44 Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 28 Sep 2026 19:37:19 +0300 Subject: [PATCH] docs: use uppercase alert prefixes so the callouts render The alert tokenizer builds its matcher from the all-caps AlertSeverityLevel keys with only the `s` flag, so `Tip:` and `Note:` never match and render as ordinary body text instead of a callout: guide/routing/define-routes.md:45, :143 Tip: guide/routing/route-guards.md:65 Tip: guide/forms/signals/validation.md:143 Note: tools/devtools/router.md:24 Note: Intent is clear from the surrounding files, which already use the correct casing: route-guards.md has two other TIP:/NOTE: alerts and validation.md has five. --- adev/src/content/guide/forms/signals/validation.md | 2 +- adev/src/content/guide/routing/define-routes.md | 4 ++-- adev/src/content/guide/routing/route-guards.md | 2 +- adev/src/content/tools/devtools/router.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/adev/src/content/guide/forms/signals/validation.md b/adev/src/content/guide/forms/signals/validation.md index 522bd0b746d..7faa70704b7 100644 --- a/adev/src/content/guide/forms/signals/validation.md +++ b/adev/src/content/guide/forms/signals/validation.md @@ -140,7 +140,7 @@ registrationForm = form(this.registrationModel, (schemaPath) => { The validation rule only runs when the `when` function returns `true`. -Note: `required` treats an empty array as present (valid), so use [`minLength()`](#minlength-and-maxlength) to enforce a minimum number of array items. +NOTE: `required` treats an empty array as present (valid), so use [`minLength()`](#minlength-and-maxlength) to enforce a minimum number of array items. ### email() diff --git a/adev/src/content/guide/routing/define-routes.md b/adev/src/content/guide/routing/define-routes.md index bf336dc33e5..735a0cbcb28 100644 --- a/adev/src/content/guide/routing/define-routes.md +++ b/adev/src/content/guide/routing/define-routes.md @@ -42,7 +42,7 @@ export const routes: Routes = [ ]; ``` -Tip: If you generated a project with Angular CLI, your routes are defined in `src/app/app.routes.ts`. +TIP: If you generated a project with Angular CLI, your routes are defined in `src/app/app.routes.ts`. ### Adding the router to your application @@ -140,7 +140,7 @@ const routes: Routes = [ In this routes array, the app displays the `NotFound` component when the user visits any path outside of `home` and `user/:id`. -Tip: Wildcard routes are typically placed at the end of a routes array. +TIP: Wildcard routes are typically placed at the end of a routes array. ## How Angular matches URLs diff --git a/adev/src/content/guide/routing/route-guards.md b/adev/src/content/guide/routing/route-guards.md index b67c8b23046..14949dbf7e4 100644 --- a/adev/src/content/guide/routing/route-guards.md +++ b/adev/src/content/guide/routing/route-guards.md @@ -62,7 +62,7 @@ export const authGuard: CanActivateFn = ( }; ``` -Tip: If you need to redirect the user, return a [`URLTree`](api/router/UrlTree) or [`RedirectCommand`](api/router/RedirectCommand). Do **not** return `false` and then programmatically `navigate` the user. +TIP: If you need to redirect the user, return a [`URLTree`](api/router/UrlTree) or [`RedirectCommand`](api/router/RedirectCommand). Do **not** return `false` and then programmatically `navigate` the user. For more information, check out the [API docs for CanActivateFn](api/router/CanActivateFn). diff --git a/adev/src/content/tools/devtools/router.md b/adev/src/content/tools/devtools/router.md index 1f19f8565c5..6edaf864baf 100644 --- a/adev/src/content/tools/devtools/router.md +++ b/adev/src/content/tools/devtools/router.md @@ -21,7 +21,7 @@ When you select a specific route in the tree, Angular DevTools displays its prop - **Auxiliary**: Indicates if the route is an auxiliary route (e.g., in a named outlet). - **Lazy**: Indicates if the route is lazily loaded. -Note: Properties like Path Match, Data, Resolvers, Guards, Providers, Title, and RunGuardsAndResolvers only appear in the sidebar when they are configured on the selected route. +NOTE: Properties like Path Match, Data, Resolvers, Guards, Providers, Title, and RunGuardsAndResolvers only appear in the sidebar when they are configured on the selected route. ### Navigate to a specific route