meteor / todos

The example app "Todos", written following the Meteor Guide
Other
535 stars 367 forks source link

where does _helpers come from? #179

Closed veyronfei closed 7 years ago

veyronfei commented 8 years ago

It's not a bug in the code. But maybe because I am quite new to javascript, so I don't quite understand the syntax. there is one line in todos-items.js line:20. todo: { type: Todos._helpers }. May I ask where is this property _helpers come from? I would like to use this reusable component pattern, but it doesn't work in my probject. Thanks in advance.

hwillson commented 7 years ago

Hi @veyronfei - it's coming from the dburles:collection-helpers package. See:

https://github.com/dburles/meteor-collection-helpers/blob/efd75bb8ada7b8a32295707ac924abc379bd6b5f/collection-helpers.js