Question about Angular 8:
In the past, I used
object['accessor']['accessor']['accessor']
as a quick workaround in TypeScript to access nested properties safely without risking an error if one of the children was empty.
What is the recommended approach now according to ECMAScript standards within a TypeScript file?
EDIT : While exploring options, I came across this article on optional chaining in TypeScript: https://medium.com/inside-rimeto/optional-chaining-in-typescript-622c3121f99b
The use of nested ternary expressions seems promising, but it appears quite complex.
EDIT 2: Disregard my previous findings as it led to irrecoverable crashes at the component level. It seems that newer Angular guidelines are stricter, and they have not provided a clear alternative yet.