Rodolfo Nogueira

Results 3 comments of Rodolfo Nogueira

It would be very interesting to use optional chaining in arrays, following the TS spec: In Angular Templates, arr?.[0] causes a: zone-evergreen.js:659 Unhandled Promise rejection: Template parse errors: Parser Error:...

Another workaround is to use the "slice" or the "at" method: ``` array?.slice(0, 1)[0] or array?.at(0) // Only for es2022+ ```