I'm using js-data and js-data-angular. I have 2 resources, organization and address, an organization hasOne address.
I'm trying to create an organization (without persisting it) to be able to bind it to the html components. And set some default props. So I'm doing:
var address = AddressResource.createInstance();
address.set('country', defaultCountry); // CountryResource.get('US');
var organization = OrganizationResource.createInstance({ address: address });
Then I'm doing in the view something like
<input ng-model="organization.address.country.name">
But the address is not being set to the org, since it doesn't exists yet in the store. So is there any way to handle this?
Thanks!