From b2978a0b3ec02252694165d6dbc67d1118bfb364 Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Tue, 13 May 2025 21:56:30 -0400 Subject: [PATCH] Updated tip syntax. --- .../src/platform/view-cache/view-cache.md | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/libs/angular/src/platform/view-cache/view-cache.md b/libs/angular/src/platform/view-cache/view-cache.md index c1f80da5800..6ef99879a06 100644 --- a/libs/angular/src/platform/view-cache/view-cache.md +++ b/libs/angular/src/platform/view-cache/view-cache.md @@ -43,12 +43,9 @@ on any component. The persistence layer ensures that the popup will open at the same route as was active when it closed, provided that none of the lifetime expiration events have occurred. -:::tip Excluding a route - -If a particular route should be excluded from the history and not persisted, add -`doNotSaveUrl: true` to the `data` property on the route. - -::: +> [!TIP] +> If a particular route should be excluded from the history and not persisted, add +> `doNotSaveUrl: true` to the `data` property on the route. ### View data persistence @@ -85,13 +82,10 @@ const mySignal = this.viewCacheService.signal({ mySignal.set("value") ``` -:::note Equality comparison - -By default, signals use `Object.is` to determine equality, and `set()` will only trigger updates if -the updated value is not equal to the current signal state. See documentation -[here](https://angular.dev/guide/signals#signal-equality-functions). - -::: +> [!NOTE] Equality comparison +> By default, signals use `Object.is` to determine equality, and `set()` will only trigger updates if +> the updated value is not equal to the current signal state. See documentation +> [here](https://angular.dev/guide/signals#signal-equality-functions). Putting this together, the most common implementation pattern would be: