mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
More edits to docs, according to Sashko's comments
This commit is contained in:
@@ -8,7 +8,7 @@ and manipulate "Views," the building blocks of reactive templates.
|
||||
|
||||
{{> autoApiBox "Blaze.render"}}
|
||||
|
||||
When you render a template, the template's callbacks added with
|
||||
When you render a template, the callbacks added with
|
||||
[`onCreated`](#template_onCreated) are invoked immediately, before evaluating
|
||||
the content of the template. The callbacks added with
|
||||
[`onRendered`](#template_onRendered) are invoked after the View is rendered and
|
||||
|
||||
@@ -67,13 +67,9 @@ instance](#template_inst) object. Properties you set on this object will be
|
||||
visible from the callbacks added with `onRendered` and `onDestroyed` methods and
|
||||
from event handlers.
|
||||
|
||||
These callbacks fire once and are the first group of callbacks to fire. Every
|
||||
`created` callbacks group has a corresponding `destroyed` group; that is, if you
|
||||
get a `created` event with a certain template instance object in `this`, you
|
||||
will eventually get a `destroyed` event for the same object.
|
||||
|
||||
Handling `created` event is a useful way to set up values on template instance
|
||||
that are read from template helpers using `Template.instance()`.
|
||||
These callbacks fire once and are the first group of callbacks to fire.
|
||||
Handling the `created` event is a useful way to set up values on template
|
||||
instance that are read from template helpers using `Template.instance()`.
|
||||
|
||||
{{> autoApiBox "Template#onDestroyed"}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user