You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question open on stack overflow about this, but it basically boils down to this:
We have various pages containing directives / components.
At the minute, all our dataService calls are done within the pageController, then passing data to each directive via attr's.
My proposal is to shift the dataService calls to within the directives controller, thereby separating the component completely from its parent controllers, and means we can just call a component using a single html tag.
Is there a problem with architecting it in this manner?