forms-angular icon indicating copy to clipboard operation
forms-angular copied to clipboard

Array Notation

Open PseudoCorps opened this issue 10 years ago • 1 comments

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}},

PseudoCorps avatar Jul 03 '15 22:07 PseudoCorps

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...

mchapman avatar Jul 31 '15 03:07 mchapman