base icon indicating copy to clipboard operation
base copied to clipboard

Add collection-helpers?

Open dburles opened this issue 9 years ago • 3 comments

Seems like it would make sense! :)

dburles avatar Aug 24 '16 03:08 dburles

I use both collection hooks and collection helpers, and have a hard time thinking about not having them....

zeroasterisk avatar Aug 24 '16 18:08 zeroasterisk

Not against this! Is there a specific implementation pattern you have in mind @dburles or just having support from scratch?

themeteorchef avatar Aug 29 '16 15:08 themeteorchef

Hmm, say the Documents collection example is updated to include firstName and lastName fields you could then write something like this as an example:

Documents.helpers({
  fullName() {
    return `${this.firstName} ${this.lastName}`;
  },
});

Otherwise I think it would make sense to just add support from scratch with the example listed in the documentation.

dburles avatar Sep 04 '16 05:09 dburles