forms-angular
forms-angular copied to clipboard
Array Notation
I think attributes like hidden and secure don't work with array notation:
comments:[ { type: Schema.Types.ObjectId, ref: 'Comment', form: {hidden: true}} ],
But do work with
comments:{ type: [Schema.Types.ObjectId], ref: 'Comment', form: {hidden: true}},
First of all thanks for your interest in forms-angular and for pointing this out.
I have spent a little while trying to fix this, but everything I have done so far either ends up breaking something else or is so kludgy I don't like it. For the moment I am just going to leave it as is - as you point out it works fine in the latter case. If anyone wants to submit a PR that would be great...