Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collection-helpers? #175

Open
dburles opened this issue Aug 24, 2016 · 3 comments
Open

Add collection-helpers? #175

dburles opened this issue Aug 24, 2016 · 3 comments
Labels

Comments

@dburles
Copy link

dburles commented Aug 24, 2016

Seems like it would make sense! :)

@zeroasterisk
Copy link

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

@themeteorchef
Copy link
Owner

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

@dburles
Copy link
Author

dburles commented Sep 4, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants