
ALT TypeScript code in a dark editor tab named orders.ts. A pageVisible() function returns toSignal of fromEvent(document, 'visibilitychange'), highlighted, mapped to document.visibilityState === 'visible', with startWith for the current state and requireSync: true. Below, an Orders component shows the number of orders from httpResource('/api/orders'). Its constructor runs an effect with the comment "fresh data when the user comes back to the tab": if this.visible(), it calls this.orders.reload(), both lines highlighted.
![TypeScript code in a dark editor tab named cart.service.ts. A CartService keeps a private writable signal _items and exposes it as items = this._items.asReadonly(), highlighted. It also has a computed total of the item prices and an add(item) method that updates _items. Below, a CartBadge component injects CartService and shows the item count and total. Its clear() method calls this.cart.items.set([]), highlighted with the comment "Error: Property 'set' does not exist on type 'Signal<CartItem[]>'".](https://pbs.twimg.com/media/HXPWOjbWgAAgcf8.jpg?name=small&format=webp)
ALT TypeScript code in a dark editor tab named cart.service.ts. A CartService keeps a private writable signal _items and exposes it as items = this._items.asReadonly(), highlighted. It also has a computed total of the item prices and an add(item) method that updates _items. Below, a CartBadge component injects CartService and shows the item count and total. Its clear() method calls this.cart.items.set([]), highlighted with the comment "Error: Property 'set' does not exist on type 'Signal<CartItem[]>'".
![Angular TypeScript code in a dark editor tab named product-search.ts. First, search.worker.ts: a message listener that runs searchProducts on the incoming data and posts the result back on ports[0]. Then a helper, runInWorker, that creates a new MessageChannel, posts the data to the worker together with port2 (highlighted), and returns a Promise that resolves when port1 receives the answer. Then a ProductSearch component: its template has an input that sets the query signal and a @for loop over results.value() showing each product name. The class creates the worker with new Worker(new URL('./search.worker', import.meta.url)) (highlighted), a query signal, and a results resource with params set to the query and a loader that calls runInWorker with the worker and the params (highlighted).](https://pbs.twimg.com/media/HW2FiFOWAAEUuhb.jpg?name=small&format=webp)
ALT Angular TypeScript code in a dark editor tab named product-search.ts. First, search.worker.ts: a message listener that runs searchProducts on the incoming data and posts the result back on ports[0]. Then a helper, runInWorker, that creates a new MessageChannel, posts the data to the worker together with port2 (highlighted), and returns a Promise that resolves when port1 receives the answer. Then a ProductSearch component: its template has an input that sets the query signal and a @for loop over results.value() showing each product name. The class creates the worker with new Worker(new URL('./search.worker', import.meta.url)) (highlighted), a query signal, and a results resource with params set to the query and a loader that calls runInWorker with the worker and the params (highlighted).

ALT Infographic titled "Where did all my RxJS operators go?" with the line "In Angular 22, most of them became signals." Five RxJS operators, each with an arrow down to the Angular signal API that replaced it: BehaviorSubject to signal(), combineLatest to computed(), debounceTime to debounced(), switchMap to httpResource(), and subscribe to effect(). Below, a timeline labeled "Still RxJS" with exhaustMap, concatMap, retry and webSocket.

ALT TypeScript code in a dark editor tab named copy-table.ts. An async function copyTable takes rows as an array of string arrays. A comment says "for Notepad, Slack, terminals: tab-separated text", and the code joins each row with tabs and the rows with new lines. A second comment says "for Excel, Google Sheets, Gmail: a real table", and the code builds an HTML table: a td for each cell, a tr for each row, wrapped in a table tag. Then it calls navigator.clipboard.write with one new ClipboardItem holding two versions (highlighted): 'text/plain' as a Blob of the text, and 'text/html' as a Blob of the HTML. Below, copyTable is called with a header row Order, Customer, Total and two order rows: 1042, guest, 49.90 and 1043, guest, 120.00.

ALT TypeScript and Angular code in share-link.ts. Function pack(state) turns JSON.stringify(state) into a Blob stream, pipes it through new CompressionStream('deflate-raw'), reads the bytes with new Response(zipped).bytes() and returns bytes.toBase64({ alphabet: 'base64url', omitPadding: true }). Function unpack<T>(text) does the reverse with Uint8Array.fromBase64, DecompressionStream('deflate-raw') and new Response(unzipped).json(). Below, an Angular component Orders with a "Copy link" button. It has a state input (the ?state=... URL param), a resource with params: this.state and loader: unpack<View>(params), and view = linkedSignal(() => this.shared.value() ?? defaultView). Its share() method sets the 'state' URL param to await pack(this.view()) and copies the URL to the clipboard. The CompressionStream, toBase64 and state input lines are highlighted.
![Angular code in broadcast-signal.ts. First, export function broadcastSignal<T>(name: string, initial: T). Inside: const channel = new BroadcastChannel(name); const synced = signal(initial); const value = linkedSignal(() => synced()). Then channel.onmessage = (event: MessageEvent<T>) => synced.set(event.data); and inject(DestroyRef).onDestroy(() => channel.close()). Then an effect: if (value() !== synced()) { channel.postMessage(value()); synced.set(value()); }, and the function returns value. Next, an @Service() class Auth with readonly user = broadcastSignal<User | null>('user', readSession()); and private readonly router = inject(Router). Its constructor runs an effect: if (!this.user()) { this.router.navigate(['/login']); }. Its logout() method calls this.user.set(null). The postMessage line, the navigate line and the this.user.set(null) line are highlighted.](https://pbs.twimg.com/media/HWr_DkpWUAAOqp_.jpg?name=small&format=webp)
ALT Angular code in broadcast-signal.ts. First, export function broadcastSignal<T>(name: string, initial: T). Inside: const channel = new BroadcastChannel(name); const synced = signal(initial); const value = linkedSignal(() => synced()). Then channel.onmessage = (event: MessageEvent<T>) => synced.set(event.data); and inject(DestroyRef).onDestroy(() => channel.close()). Then an effect: if (value() !== synced()) { channel.postMessage(value()); synced.set(value()); }, and the function returns value. Next, an @Service() class Auth with readonly user = broadcastSignal<User | null>('user', readSession()); and private readonly router = inject(Router). Its constructor runs an effect: if (!this.user()) { this.router.navigate(['/login']); }. Its logout() method calls this.user.set(null). The postMessage line, the navigate line and the this.user.set(null) line are highlighted.























