Introduction
Angular Composition API is a composition model for functional reactive Angular applications. It enables developers to express components, directives and services in terms of functional reactive inputs and outputs.
Features#
- Small bundle size (4kb min gzipped)
- Minimal API
- Granular change detection
- Better-than
OnPushperformance - Optional Zone.js
- Observable inputs and queries
- Reactive two-way bindings
- Composable components, directives and services
- Composable providers
- Composable subscriptions
- Lifecycle hooks
- Computed values
- Automatic teardown
- RxJS interop (v6 and v7)
- Incrementally adoptable
caution
Project status#
This project is currently in public beta. The API is relatively stable but some behaviors may change or be clarified over time.
Angular compatibility#
This package will maintain compatibility with the latest version of Angular, designated by the package version number.
| Package Version | Supported Angular Version |
|---|---|
| 0.12XX.X+ | 12.X.X |
| 0.13XX.X+ | 13.X.X |