angular-docs-cn/aio/content/examples
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
..
accessibility test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
ajs-quick-reference docs: remove prefixed border-radius related properties (#40066) 2020-12-10 14:29:39 -08:00
animations docs: fix the code sample displayed in the "reusable animations" guide (#37262) 2020-12-10 11:03:32 -08:00
architecture test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
attribute-binding docs: how to create a custom Attribute decorator in a child component and use it from a parent component (#38721) 2020-12-08 08:52:25 -08:00
attribute-directives test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
binding-syntax test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
bootstrapping test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
built-in-directives test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
built-in-template-functions test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
cli-builder/src fix(docs-infra): convert hard-coded `cli-builder` examples into a proper mini-app (#34362) 2020-01-21 13:12:18 -05:00
comparing-observables test(docs-infra): add commands to run the unit tests (#34537) 2020-08-27 09:05:59 -07:00
component-interaction test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
component-overview test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
component-styles test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
dependency-injection docs: edit dependency-injection.md (#39255) 2020-11-30 11:03:59 -08:00
dependency-injection-in-action test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
displaying-data test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
docs-style-guide test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
dynamic-component-loader test(docs-infra): fix the `dynamic-component-loader` e2e tests (#39818) 2020-11-24 14:56:10 -08:00
dynamic-form test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
elements test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
event-binding test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
feature-modules test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
form-validation test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
forms test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
forms-overview test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
getting-started docs: use an explicit product id in the getting started example (#34934) 2020-12-17 12:02:10 -08:00
getting-started-v0 style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143) 2020-07-31 11:00:05 -07:00
hierarchical-dependency-injection test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
http docs: remove cursor: hand (#39918) 2020-12-09 09:04:54 -08:00
i18n test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
inputs-outputs test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
interpolation docs: edit interpolation doc (#38687) 2020-12-01 10:15:00 -08:00
lazy-loading-ngmodules test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
lifecycle-hooks docs: fix `SpyDirective` in `lifecycle-hooks` docs example to use one ID per instance (#40208) 2020-12-21 14:22:15 -08:00
ngcontainer docs: replace class hero to interface wherever class properties not used (#34022) 2019-11-25 11:37:39 -05:00
ngmodules test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
observables test(docs-infra): add unit tests for rxjs examples (#34190) 2020-09-16 15:13:02 -07:00
observables-in-angular test(docs-infra): add unit tests for rxjs examples (#34190) 2020-09-16 15:13:02 -07:00
pipes test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
practical-observable-usage test(docs-infra): add missing unit tests for backoff example (#38896) 2020-09-24 11:33:20 -04:00
property-binding test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
providers test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
providers-viewproviders test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
reactive-forms test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
resolution-modifiers test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
router docs: remove cursor: hand (#39918) 2020-12-09 09:04:54 -08:00
router-tutorial test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
rx-library docs: fix typo at console.log (#39252) 2020-10-15 14:15:36 -07:00
schematics-for-libraries feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
security test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
service-worker-getting-started test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
set-document-title test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
setup test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
structural-directives test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
styleguide docs: remove prefixed animation related CSS properties (#40084) 2020-12-14 11:36:48 -08:00
template-expression-operators test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
template-reference-variables test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
template-syntax test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
testing docs: remove -webkit-box-sizing and -moz-box-sizing (#40039) 2020-12-10 13:38:19 -08:00
toh-pt0 test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
toh-pt1 test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
toh-pt2 test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
toh-pt3 test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
toh-pt4 docs: remove unused CSS rules (#40069) 2020-12-10 14:30:17 -08:00
toh-pt5 docs: remove unused CSS rule (#40080) 2020-12-14 11:35:36 -08:00
toh-pt6 docs: remove unused CSS rule (#40080) 2020-12-14 11:35:36 -08:00
two-way-binding test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
universal docs: remove unused CSS rule (#40080) 2020-12-14 11:35:36 -08:00
upgrade-lazy-load-ajs build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00
upgrade-module test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
upgrade-phonecat-1-typescript test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
upgrade-phonecat-2-hybrid test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
upgrade-phonecat-3-final test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
user-input test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
.gitignore build(docs-infra): add a tool to create new examples (#39283) 2020-10-16 08:14:38 -07:00
tsconfig.json build(aio): give intellisense to the examples 2017-04-15 22:15:54 +01:00
tslint.json build(docs-infra): update docs examples to Angular v11.0.1 (#39818) 2020-11-24 14:56:09 -08:00