While diving into my Angular learning journey, I stumbled upon Observables which intrigue me but still hold a mystery for me. One specific challenge I faced was having an Observable that depended on another Observable to complete before proceeding.
This led me to nesting the observables to tackle some sequence issues arising from their independent nature. However, as I explored this approach further, it seemed to become a bit messy, and I anticipate needing to introduce more nested observables down the line.
Here's a snippet of the code illustrating my current structure...
this.permissionService.build().subscribe( p =>{
this.Headers = p;
this.accessService.buildTitlesWithMenus().subscribe( q => {
this.treeNodes = this.accessService.buildTreeTable(q);
});
});