Skip to content

Commit

Permalink
Merge pull request #13250 from Gaurav0/component_event_docs
Browse files Browse the repository at this point in the history
[DOC RELEASE] Ember 1.13 Component Lifecycle Events API Docs
  • Loading branch information
rwjblue committed Apr 8, 2016
2 parents 34c32a4 + 4adef52 commit 47af7a2
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions packages/ember-views/lib/components/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,118 @@ var Component = View.extend(TargetActionSupport, {
@property positionalParams
@since 1.13.0
*/

/**
Called when the attributes passed into the component have been updated.
Called both during the initial render of a container and during a rerender.
Can be used in place of an observer; code placed here will be executed
every time any attribute updates.
@method didReceiveAttrs
@public
@since 1.13.0
*/

/**
Called when the attributes passed into the component have been updated.
Called both during the initial render of a container and during a rerender.
Can be used in place of an observer; code placed here will be executed
every time any attribute updates.
@event didReceiveAttrs
@public
@since 1.13.0
*/

/**
Called after a component has been rendered, both on initial render and
in subsequent rerenders.
@method didRender
@public
@since 1.13.0
*/

/**
Called after a component has been rendered, both on initial render and
in subsequent rerenders.
@event didRender
@public
@since 1.13.0
*/

/**
Called before a component has been rendered, both on initial render and
in subsequent rerenders.
@method willRender
@public
@since 1.13.0
*/

/**
Called before a component has been rendered, both on initial render and
in subsequent rerenders.
@event willRender
@public
@since 1.13.0
*/

/**
Called when the attributes passed into the component have been changed.
Called only during a rerender, not during an initial render.
@method didUpdateAttrs
@public
@since 1.13.0
*/

/**
Called when the attributes passed into the component have been changed.
Called only during a rerender, not during an initial render.
@event didUpdateAttrs
@public
@since 1.13.0
*/

/**
Called when the component is about to update and rerender itself.
Called only during a rerender, not during an initial render.
@method willUpdate
@public
@since 1.13.0
*/

/**
Called when the component is about to update and rerender itself.
Called only during a rerender, not during an initial render.
@event willUpdate
@public
@since 1.13.0
*/

/**
Called when the component has updated and rerendered itself.
Called only during a rerender, not during an initial render.
@event didUpdate
@public
@since 1.13.0
*/

/**
Called when the component has updated and rerendered itself.
Called only during a rerender, not during an initial render.
@event didUpdate
@public
@since 1.13.0
*/
});

Component.reopenClass({
Expand Down

0 comments on commit 47af7a2

Please sign in to comment.