Asked • 07/29/19

Is having a parent controller to manage a set of tabbed sections an anti-pattern for an angular application?

A lot of times, I have long forms that I divide into multiple tabbed sections. Each section is managed by it's own controller and there is a parent controller that manages the whole view. I use ui-router for dividing such sections into states. Should I make a service instead of a controller to manage the all the sections but generally, I don't have business logic in their. It's mostly done for collection data altogether and passing it to an API using ng-resource. I know

1 Expert Answer

By:

Joseph D. answered • 01/22/22

Tutor
5.0 (115)

Senior Web Developer and JavaScript expert specializing in Angular

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.