Hello,
What's the best practice and the correct way to access child or sub properties on objects inside viewmodel.
For instance, in a viewmodel I have, it contains an object "curRec". this object has sub properties for instance, "curRec.assessment" (object) or "curRec.actions" (array).
In the viewmodel, shall I use this: this.get("curRec").assessment / this.get("curRec").actions or this.get("curRec.assessment") / this.get("curRec.actions")
Thanks
What's the best practice and the correct way to access child or sub properties on objects inside viewmodel.
For instance, in a viewmodel I have, it contains an object "curRec". this object has sub properties for instance, "curRec.assessment" (object) or "curRec.actions" (array).
In the viewmodel, shall I use this: this.get("curRec").assessment / this.get("curRec").actions or this.get("curRec.assessment") / this.get("curRec.actions")
Thanks