angular-cn/aio/content/examples/lifecycle-hooks
George Kalpakas 5ba7bcd2a6 docs: fix `SpyDirective` in `lifecycle-hooks` docs example to use one ID per instance (#40208)
Previously, the `SpyDirective` in the `lifecycle-hooks` docs example
would use a different ID when logging `onInit` and when logging
`onDestroy` for the same instance, making it impossible to associate the
two calls. This was not helpful and came in constrast with how the
directive was described in the corresponding guide and shown in the
accompanying `spy-directive.gif` image.

This commit fixes the logic of the `SpyDirective` class to use the same
ID for all log operations of an instance.

Partially addresses #40193.

PR Close #40208
2020-12-21 14:22:15 -08:00
..
e2e/src test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
src docs: fix `SpyDirective` in `lifecycle-hooks` docs example to use one ID per instance (#40208) 2020-12-21 14:22:15 -08:00
example-config.json docs(aio): update migrated content from anguar.io 2017-03-28 10:21:46 +01:00
stackblitz.json build(aio): migrate plunker to stackblitz (#20165) 2018-01-23 21:30:27 -08:00