I updated my Angular app to v16 and I'm trying to use Signals. Before, I was initializing my variables without initial value
filters: Filter[];
but as I'm using Signals it gives me an error.
An argument for 'initialValue' was not provided
Is there a way I can create a Signal without initializing its value?
I tried setting its Type to possibly null and giving it null value
signal<Category | null>(null);
But some other errors occurred in the file like
Object is possibly 'null'.
And I'm not a fan of using "any" type
So please can you provide another solution?