@slop-ai/angular
bun add @slop-ai/client @slop-ai/angularuseSlop(client, pathOrGetter, descriptorFactory)
Section titled “useSlop(client, pathOrGetter, descriptorFactory)”Call useSlop() inside an Angular 19+ injection context such as a constructor or field initializer.
constructor() { useSlop(slop, "notes", () => ({ type: "collection", props: { count: this.notes().length }, }));}The implementation uses afterRenderEffect() so Angular input signals are initialized before descriptor reads happen.