Skip to main content

@rx-angular/template

npm rx-angular CI codecov

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.

template logo

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โ€‹

Installationโ€‹

npm install @rx-angular/template

APIโ€‹

API Documentation

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โ€‹

RxAngularAngular
^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.