Composition API and supporting libraries for writing functional Angular applications.
function setup() {
const service = inject(Service)
const count = use(0)
subscribe(count, () => {
service.log(count.value)
})
return {
count,
}
}This repository is a reference implementation for this RFC discussion.
| Name | Description |
|---|---|
| Core | Composition model for writing functional reactive Angular applications. |
| Boundary | Error Boundary and Suspense implementation for Angular. |
| Store | State management library for Angular Composition API. |
| Resource | Data fetching library for Angular Composition API. |
-
Clone this repository.
-
Run
yarninside the project root. -
Run
ng testto ensure tests are passing. -
Run
ng build [package]to build the library. -
Run
ng linkfromdist/[package]andng link @mmuscat/[package]to link the build files to your workspace -
Run
ng serveto check the example application works.