What's Changed
This version of Angular Redux fixes a bug where using input.required
inputs in a selector throws an error:
@Component({
selector: 'app-count-and-add',
standalone: true,
template: `
<button aria-label="Increment value" (click)="dispatch(increment())">
Increment
</button>
<p>Count: {{ count() }}</p>
`,
})
class CountAndAdd {
dispatch = injectDispatch();
increment = counterSlice.actions.increment;
addBy = input.required<number>();
count = injectSelector((state: any) => state.counter.value + this.addBy());
}
While this would usually be a patch release, the solution required us to use the new linkedSignal
API, so we had to bump the major version to only support Angular 19+.
Breaking Changes
- Change supported Angular versions to Angular 19+
- No API changes
Full Changelog: v1.0.1...v2.0.0