angular-docs-cn/public/docs/dart/latest/guide/lifecycle-hooks.jade
Patrice Chalin 50f5a80db1 docs(lifecycle-hooks): Dart sync with TS updates (#2952)
* initial cache sync

Also updating glossary since that was missed earlier.

* minor updates to Dart and TS jade

* final cache sync

* feedback from Ward
2016-12-08 16:48:02 -08:00

19 lines
664 B
Plaintext

extends ../../../ts/_cache/guide/lifecycle-hooks.jade
block includes
include ../_util-fns
block other-angular-subsystems
:marked
The router, for instance, also has its own [router lifecycle
hooks](router.html#router-lifecycle-hooks) that allow us to tap into
specific moments in route navigation.
A parallel can be drawn between `ngOnInit` and `routerOnActivate`. Both are
prefixed so as to avoid collision, and both run right when a component is
being initialized.
block tick-methods
:marked
The `LoggerService.tick()` postpones the log update
for one turn of the browser's update cycle ... and that's just long enough.