Skip to content

Commit 1492ea5

Browse files
committed
docs(chat): note injection-context + module-scope signal requirement in thread-routing guide
1 parent b14d4ea commit 1492ea5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/website/content/docs/chat/guides/thread-routing.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
`injectThreadRouting()` binds an app-owned active-thread signal to the Angular Router: it restores the thread id from the URL on load, stamps signal changes back into the URL, validates stale links, and treats a bare URL as "no thread" (the welcome state). **The URL is the sole source of truth — nothing is written to localStorage**, so links remain shareable without any extra plumbing.
44

5+
> Call `injectThreadRouting()` from an injection context (a component constructor or field initializer), and declare the active-thread signal at module scope so your `provideAgent({ threadId })` provider can reference it.
6+
57
## What it does
68

79
| Behavior | Detail |

0 commit comments

Comments
 (0)