When trying to insert an embedded document, what should the angular view look like?
This is my model in node:
var ArticleSchema = new Schema({
/*other fields that aren't relavent here */
allowed_countries:[CountrySchema]
});
var CountrySchema = new Schema({
country: {
type: String,
default: '',
trim: true
}
});
This is what I tried for the Angular View:
<div class="control-group">
<label class="control-label" for="allowed_countries.country">Allowed Countries</label>
<div class="controls">
<input type="text" data-ng-model="allowed_countries.country" id="allowed_countries.country">
</div>
</div>
Obviously, this isn't working but I'm not sure why how are you supposed to sort out the view for a subdocument in Angular (my google-fu is failing me)
Any help would be appreciated.