@rx-angular/template
v18.0.3
Published
**Fully** Reactive Component Template Rendering in Angular. @rx-angular/template aims to be a reflection of Angular's built in renderings just reactive.
Downloads
108,559
Readme
@rx-angular/template
A lib for handling data streams in templates for high performance and ergonomic Angular UI's in large-scale applications
@rx-angular/template
was specifically designed to help developers reduce the boilerplate in templates and have performant change detection rendering and provide a migration path to go full zone-less.
Sub Modules
Experimental features
All experimental features are very stable and already tested in production apps for multiple months. The reason to have them in experimental is so we can make small typing changes without breaking changes.
Concepts
- reactive context
- local templates
- local variables
- render strategies
- Coalescing
- Coercing
- Scheduling
- Rendering Issues in Angular
Installation
npm install @rx-angular/template
API
Basic setup
You can import each feature individually.
import { RxLet } from '@rx-angular/template/let';
import { RxFor } from '@rx-angular/template/for';
import { RxPush } from '@rx-angular/template/push';
import { RxUnpatch } from '@rx-angular/template/unpatch';
@Component({
standalone: true,
imports: [RxFor, RxLet, RxPush, RxUnpatch],
template: `...`,
})
export class AnyComponent {}
Version Compatibility
| RxAngular | Angular |
|-----------|------------|
| ^18.0.0
| ^18.0.0
|
| ^17.0.0
| ^17.0.0
|
| ^16.0.0
| ^16.0.0
|
| ^15.0.0
| ^15.0.0
|
| ^14.0.0
| ^14.0.0
|
| ^2.0.0
| >=13.0.0
|
| ^1.0.0
| >=12.0.0
|
Regarding the compatibility with RxJS, we generally stick to the compatibilities of the Angular framework itself, for more information about the compatibilities of Angular itself see the official guide.