angular-docs-cn/aio/content
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
..
cli docs: remove all references to Angular Console (#37608) 2020-07-15 12:30:59 -07:00
cli-src build(docs-infra): make the git ref for cli command docs configurable (#26391) 2018-10-11 12:57:49 -07:00
examples docs: fix `SpyDirective` in `lifecycle-hooks` docs example to use one ID per instance (#40208) 2020-12-21 14:22:15 -08:00
guide docs: HTTP in HttpClient should not be written in uppercase (#40195) 2020-12-21 14:21:32 -08:00
images docs: add Teri Glover to contributor file (#39830) 2020-12-10 13:22:16 -08:00
marketing build(docs-infra): update Lighthouse to v7.0.0 (#40198) 2020-12-21 10:36:02 -08:00
start docs: use an explicit product id in the getting started example (#34934) 2020-12-17 12:02:10 -08:00
tutorial docs: fix reference to `routes` array in TOH tutorial (#40023) 2020-12-08 08:56:40 -08:00
file-not-found.md fix(docs-infra): do not create an anchor for the `file-not-found` header (#27250) 2018-12-05 13:26:26 -08:00
license.md build: bump year (#34651) 2020-01-13 07:21:43 -08:00
navigation.json docs: Rename Main concepts to Understanding Angular, Built-in Features to Developer Guides (#39930) 2020-12-14 11:30:21 -08:00