I'm trying to wrap my mind arround angular components, to understand components better I'm developing a simple todo crud using the component architecture.
The problem is that I think it makes sense to put all operations of the crud in a single controller thus respecting the single responsibility principle but at the same time it is a good practice (I think) to split the views (one for list todos and delete another to create/update todos).
I know that multiple views with a single controller can be achieved using two separate components registering the same controller and some ng/ui-route magic, but using this blows up the encapsulation proposal that the components try to offer.
So, has anyone figured out a good solution to this problem?