E5EF docs(adev): fix mobile layout shift in API reference filters by anushkasingh-commits · Pull Request #67670 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
justify-content: space-between;
justify-content: flex-start;
align-items: center;
row-gap: 0.5rem;
}
}

Expand Down
1 change: 0 additions & 1 deletion adev/src/content/guide/routing/navigate-to-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ export class UserDetail {
}
}
```

### `router.navigateByUrl()`

The `router.navigateByUrl()` method provides a direct way to programmatically navigate using URL path strings rather than array segments. This method is ideal when you have a full URL path and need to perform absolute navigation, especially when working with externally provided URLs or deep linking scenarios.
Expand Down
13 changes: 13 additions & 0 deletions adev/src/content/guide/signals/linked-signal.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ shippingOptions.set(['Email', 'Will Call', 'Postal service']);
console.log(selectedOption()); // 'Email'
```


## Accounting for previous state

In some cases, the computation for a `linkedSignal` needs to account for the previous value of the `linkedSignal`.
Expand Down Expand Up @@ -133,3 +134,15 @@ const activeUserEditCopy = linkedSignal({
equal: (a, b) => a.id === b.id,
});
```

## When to prefer `linkedSignal` over `computed`

While `computed` is typically used to derive read-only state from other signals,
`linkedSignal` is useful when the derived state should remain writable or
preserve user-driven updates as its source changes.

Use `linkedSignal` when the value depends on another signal but still needs to
be explicitly set or updated in response to user interaction.

Additionally, `linkedSignal` should be used when you need access to the previous
state while reacting to a source signal.
Loading
0