In home.component.ts you can change
params['allowance'] && this.allowance.setValue(params['allowance']);
to
if (params['allowance']) { this.allowance.setValue(params['allowance'] === 'true'); }
and also change other same code which gets boolean value from url parameters.
Possible solution:
In home.component.ts you can change
params['allowance'] && this.allowance.setValue(params['allowance']);
toif (params['allowance']) { this.allowance.setValue(params['allowance'] === 'true'); }
and also change other same code which gets boolean value from url parameters.