refactor(Lifecycle hooks): move the hooks to their own module (lifecycle_hooks)

BREAKING CHANGE

Lifecycle hooks now live in the `angular2/lifecycle_hooks` module.
They previously lived in the `metadata` module.
This commit is contained in:
Victor Berchet
2015-09-02 16:43:39 -07:00
parent ef88e0f804
commit 3d38ec8aac
23 changed files with 76 additions and 57 deletions

View File

@ -318,6 +318,10 @@ import {ChangeDetectionStrategy} from 'angular2/change_detection';
* the directive
* controller is correctly instantiated on the `<template>` element rather than the `<li>` element.
*
* ## Lifecycle hooks
*
* When the directive class implements some {@link angular2/lifecycle_hooks} the callbacks are
* called by the change detection at defined points in time during the life of the directive.
*
* ## Example
*
@ -734,6 +738,11 @@ export class DirectiveMetadata extends InjectableMetadata {
*
* For details on the `@View` annotation, see {@link ViewMetadata}.
*
* ## Lifecycle hooks
*
* When the component class implements some {@link angular2/lifecycle_hooks} the callbacks are
* called by the change detection at defined points in time during the life of the component.
*
* ## Example
*
* ```