Skip to content

Commit

Permalink
adds docs
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Mar 17, 2016
1 parent 941b9be commit d735dff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/dummy/app/routes/docs/sustain/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@
</p>
{{code-snippet name='sustain-6.hbs'}}

<h4>Lifecycle Hooks</h4>
<p>
The component being sustained has access to two new hooks: `willMove` and `didMove`.
For both, a method by that name on your component will trigger before the event fires.
</p>
<ul>
<li>willMove: fires before a component instance leaves a location</li>
<li>didMove: fires when a component instance has entered a location</li>
</ul>
<p>
On the initial render and insertion of a sustained component, only `didMove` triggers.
</p>

</box>
</box>

Expand Down

0 comments on commit d735dff

Please sign in to comment.