mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| cli | ||
| cli-src | ||
| examples | ||
| guide | ||
| images | ||
| marketing | ||
| start | ||
| tutorial | ||
| file-not-found.md | ||
| license.md | ||
| navigation.json | ||