[GH-ISSUE #83] created vs onCreated #68

Open
opened 2026-05-05 15:01:07 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @skywalkerlw on GitHub (Aug 31, 2016).
Original GitHub issue: https://github.com/awatson1978/meteor-api/issues/83

In snippets:
`Template.name.onCreated = function(){

};`

but the correct one should be (you have misused with created):

Template.name.onCreated(function() { });

Originally created by @skywalkerlw on GitHub (Aug 31, 2016). Original GitHub issue: https://github.com/awatson1978/meteor-api/issues/83 In snippets: `Template.name.onCreated = function(){ };` but the correct one should be (you have misused with created): `Template.name.onCreated(function() { });`
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/meteor-api#68
No description provided.