My Angular code is filled with instances where I assign a property at its definition like this...
public data$ = this.service$.fetchData;
constructor(private service$: MyService
However, after updating my tsconfig.json target to "es2022"
, I encountered the error
Property 'service$' is used before its initialization.ts(2729)
Is it still acceptable to assign properties at declaration in this scenario?