angular/modules/angular2/src/router
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
..
async_route_handler.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
component_recognizer.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
hash_location_strategy.ts feat(router): add support for APP_BASE_HREF to HashLocationStrategy 2015-11-25 22:29:43 +00:00
instruction.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
interfaces.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
lifecycle_annotations.dart feat(router): lifecycle hooks 2015-07-13 09:12:15 -07:00
lifecycle_annotations.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
lifecycle_annotations_impl.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
location.ts cleanup(tooling): move tooling to the browser platform and rename profile into instrumentation 2015-11-24 19:29:52 +00:00
location_strategy.ts feat(router): add support for APP_BASE_HREF to HashLocationStrategy 2015-11-25 22:29:43 +00:00
package.json chore(): npm release script for router artifacts. 2015-11-09 20:45:55 +00:00
path_location_strategy.ts feat(router): add support for APP_BASE_HREF to HashLocationStrategy 2015-11-25 22:29:43 +00:00
path_recognizer.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
platform_location.ts feat(router): add support for APP_BASE_HREF to HashLocationStrategy 2015-11-25 22:29:43 +00:00
route_config_decorator.dart refactor(router): convert to typescript 2015-06-02 11:06:44 -07:00
route_config_decorator.ts chore(ts2dart): replace List with Array 2015-08-31 21:32:10 +00:00
route_config_impl.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_config_nomalizer.dart refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_config_nomalizer.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_definition.dart refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_definition.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_handler.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_lifecycle_reflector.dart refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
route_lifecycle_reflector.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
route_recognizer.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
route_registry.ts fix(router): fix a typing issue 2015-12-01 00:09:40 +00:00
router.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
router_link.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
router_outlet.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
sync_route_handler.ts refactor(router): improve recognition and generation pipeline 2015-11-30 17:06:03 +00:00
url_parser.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00