8 Commits

Author SHA1 Message Date
Kathy Walrath
f4d937ad8d docs(cheatsheet): add Dart-specific syntax & headings
Closes 
2015-12-09 23:05:23 +00:00
Peter Bacon Darwin
2f0744b089 docs(cheatsheet): update to new syntax
See https://github.com/angular/angular.io/pull/459

Closes 
2015-12-09 19:04:08 +00:00
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 
2015-11-30 16:40:50 -08:00
Peter Bacon Darwin
c03fb36e11 docs(cheatsheet): add missing bootstrapping section
Closes 

Closes 
2015-11-16 23:15:03 +00:00
Wassim Chegham
b16fa45d83 docs(*): onContentInit --> afterContentInit
Closes 
2015-11-13 23:25:02 +00:00
Peter Bacon Darwin
9b3b721f08 docs(*): more cheatsheet docs 2015-11-11 16:32:25 -08:00
Peter Bacon Darwin
756727b930 docs(*): more cheatsheet docs 2015-11-11 16:32:25 -08:00
Peter Bacon Darwin
533b722c66 docs(*): move cheatsheet stuff into its own files 2015-11-11 16:32:25 -08:00