I have a boolean valued input property in an Angular 12 app that looks like this:
@Input()
isTOSAccepted: boolean = false
And in the template I'm attempting to set the value like this:
[isTOSAccepted]="oftrue | async">
The oftrue
property is declared like this:
oftrue:Observable<boolean> = of(true)
The template linter creates the following error:
Type 'boolean | null' is not assignable to type 'boolean'.
Type 'null' is not assignable to type 'boolean'.ngtsc(2322)
Thoughts?