I have two objects, a House and a Tenant, both described and constructed in factory methods. For the purposes of the app, each Tenant may have more than one house and each House may have more than one tenant. Thus, each object needs to keep an array of the other and be able to perform functions on the other. For instance, when a User is looking at his/her overview, he can see an icon of all of his/her houses to click on to be taken into the "House Page" for that particular house. In the "House Page" the house must know who are the tenants so that bills can be split between all of the tenants and chores can be assigned to tenants.
My problem is that when creating factory methods, I run into circular dependance injection and Angular JS doesn't seem to like that. I can't seem to think of a solution. Any suggestions?