angular/modules/angular2/test/compiler
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
..
schema refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
change_definition_factory_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
change_detector_compiler_spec.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
change_detector_mocks.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
command_compiler_spec.ts feat(Compiler): case sensitive html parser 2015-11-19 18:55:04 +00:00
directive_metadata_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
eval_module.dart chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
eval_module.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
eval_module_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
html_lexer_spec.ts feat(Compiler): case sensitive html parser 2015-11-19 18:55:04 +00:00
html_parser_spec.ts feat(Compiler): case sensitive html parser 2015-11-19 18:55:04 +00:00
runtime_compiler_spec.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
runtime_metadata_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
schema_registry_mock.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
selector_spec.ts cleanup: move DomAdapter from angular2/core into angular2/platform/common_dom 2015-11-20 00:14:24 +00:00
shadow_css_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
source_module_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
spies.dart chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
spies.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
style_compiler_import.css.shim.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
style_compiler_import.css.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
style_compiler_spec.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
style_url_resolver_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
template_compiler_spec.ts fix(compiler): dedup directives in template compiler 2015-11-30 19:37:54 +00:00
template_normalizer_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
template_parser_spec.ts feat(parser): allows users install custom AST transformers 2015-11-20 19:46:02 +00:00
template_preparser_spec.ts feat(Compiler): case sensitive html parser 2015-11-19 18:55:04 +00:00
test_bindings.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
url_resolver_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
util_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
xhr_mock_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00