Streaming Markdown in Angular
Append incoming chunks to a signal and pass it to text. The streaming input controls unfinished syntax repair, smooth output, and entrance effects.
Connect a text stream
This example receives an async iterator of decoded text. Keep SSE or other protocol decoding in your request layer:
Call read(chunks) after starting a request. Disable streaming when it ends to show all received content and remove the trailing marker.
Adjust output
streaming: true enables ending repair, smooth output, and the scale effect. Use an object to control them separately:
Import
StreamingConfigfrom@fluxdown/angular.
Four effects
Keep the original network chunks and fade them in individually:
effect also accepts [name, config] or an array of effects. See configuration for the fields and animation effects for live examples. Custom tickers and schedulers are covered in Core streaming.
Multiple messages
Give each message its own component, and track it by message ID in @for so a different message gets its own playback state: