I have an application with multiple sections that are more or less independent CRUD components.
As far as I know there are two ways to approach this:
- Have a parent with ngIfs that handle view/edit/add children
- Use subrouting with an outlet in every parent component and routers that go something like /section/edit, /section/view, and what not.
My question is what's the best practice to approach this. I'd tend towards the first since it allows user to do stuff like editing multiple sections at once, but programatically it doesn't seem as elegant as the second one.