angular-cn/modules/angular2/test
Jeff Cross 604c8bbad5 refactor(lifecycle): prefix lifecycle methods with "ng"
BREAKING CHANGE:
Previously, components that would implement lifecycle interfaces would include methods
like "onChanges" or "afterViewInit." Given that components were at risk of using such
names without realizing that Angular would call the methods at different points of
the component lifecycle. This change adds an "ng" prefix to all lifecycle hook methods,
far reducing the risk of an accidental name collision.

To fix, just rename these methods:
 * onInit
 * onDestroy
 * doCheck
 * onChanges
 * afterContentInit
 * afterContentChecked
 * afterViewInit
 * afterViewChecked
 * _Router Hooks_
 * onActivate
 * onReuse
 * onDeactivate
 * canReuse
 * canDeactivate

To:
 * ngOnInit,
 * ngOnDestroy,
 * ngDoCheck,
 * ngOnChanges,
 * ngAfterContentInit,
 * ngAfterContentChecked,
 * ngAfterViewInit,
 * ngAfterViewChecked
 * _Router Hooks_
 * routerOnActivate
 * routerOnReuse
 * routerOnDeactivate
 * routerCanReuse
 * routerCanDeactivate

The names of lifecycle interfaces and enums have not changed, though interfaces
have been updated to reflect the new method names.

Closes #5036
2015-11-30 16:40:50 -08:00
..
animate cleanup: move DomAdapter from angular2/core into angular2/platform/common_dom 2015-11-20 00:14:24 +00:00
common refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
compiler refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
core refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
facade refactor(tests): move facades tests out of tests/core 2015-11-30 22:24:35 +00:00
http fix(http): Fix all requests defaulting to Get 2015-11-23 22:17:13 +00:00
mock refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
platform refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
router refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
symbol_inspector chore(test): fix public API test failure when no support of Symbol.for 2015-11-10 11:23:01 +01:00
testing feat(testing): use zones to avoid the need for injectAsync 2015-11-30 14:06:06 -08:00
upgrade refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
web_workers chore(build): increase timeout of the 5 most flaky tests 2015-11-23 19:23:25 +00:00
dev_mode_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
public_api_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00