I've read several books on Angular 1, but I'm still quite the beginner so 
my apologies if my question is unclear or has already been answered (I did 
search in as many ways as I could gather).

I'm attempting to build an application that would store details about a 
person (name, contact information, ect) and companies (name, address, 
ect.).  One of the books I read made the argument for vertical organization 
into angular modules so thus far I've created two modules (company & 
contact).  It is obvious to me how to setup two unique pages to do whatever 
I need (add/remove/edit company or contact), but I also want to be able to 
associate contacts with companies.  My question is what is the best way to 
structure my application (angular-wise) if I would like to show both on the 
same page, as in when I am looking at a specific company on a portion of 
the page (bottom) I have a list of the contacts associated with the 
company.  Since I already have a contact module I'm trying to figure out if 
I'm supposed to be using the controller from that module in the partial on 
the second half of the page or if I'm supposed to expand the company 
controller to be able to also query and provide my $scope access to the 
contacts for the company.  

I'm unsure if my question is more semantics or syntax.  Not sure if this is 
a situation where I can use both modules and can pass data between them via 
a service or if I'm completely off base.  Again sorry for confusing 
question, but I've been studying angular pretty aggressively and very much 
enjoy it, but it has been challenging to understand how to do certain 
things that I'm trying to do in my application.

Thanks in advance for any and all help.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to