re: Simple state management in Angular with only Services and RxJS VIEW POST


Accessors for the same member name must specify the same accessibility

todos getter/setters must either both be public or both be private. My preference is they are private, so that publicly, only the observable is accessible.

Another alternative is make private set _todos and public get todos.

You probably already know better than me which options are best, but thought I throw some options out there for others that come across this.

Thanks for the excellent example. Do you by any chance have an example for todosGroup and todos, and how they would work with each other when navigating from group to single todo?

Thank you for sharing. I value your input as a developer and person. :D

Code of Conduct Report abuse