angular-cn/aio/content/examples
aschaap 5e8dcfd641 docs(docs-infra): fix (+) not accepting null error by using `Number` instead (#41570)
Fix unexpected error when following the tutorial (when going through it with stricter type checking enforced). While (+) converts a string to an integer, it does not account for the possibility that `this.route.snapshot.paramMap.get('id')` could return null (type: string | null). Since this null case is not a practical outcome, it is a matter of types; switching from (+) to the `Number` function eliminates this issue, making the tutorial more robust.
PR Close #41570
2021-04-12 21:08:21 -07: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 unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
animations docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
architecture docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
attribute-binding docs: add camelCase example to style notation (#40699) 2021-02-16 07:59:40 -08:00
attribute-directives docs: Remove of unnecessary Input (#41150) 2021-03-10 11:20:01 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
built-in-directives build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
dependency-injection docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
dependency-injection-in-action docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
displaying-data docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
docs-style-guide docs: update docs-style-guide (#36281) 2021-02-09 14:26:06 -08:00
dynamic-component-loader docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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
errors/cyclic-imports refactor(compiler-cli): error on cyclic imports in partial compilation (#40782) 2021-02-17 06:53:38 -08:00
event-binding build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -08:00
feature-modules docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
form-validation docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
forms docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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 build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -08:00
getting-started-v0 docs: fix instructions for setting up `ProductDetailsComponent` in `start-routing.md` (#40197) 2021-01-06 13:54:54 -08: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: improve contrast of colors and body padding in boilerplate CSS (#40890) 2021-03-01 15:30:32 -08:00
i18n docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
inputs-outputs docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
interpolation docs: add some boilerplate button, h3, and hr styles (#41052) 2021-03-23 09:37:59 -07:00
lazy-loading-ngmodules docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
lifecycle-hooks docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
ngcontainer docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08: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 build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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 unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
router-tutorial docs: use shorthand background CSS property in Routing example (#40834) 2021-02-16 09:26:26 -08:00
rx-library docs: fix typo at console.log (#39252) 2020-10-15 14:15:36 -07:00
schematics-for-libraries docs: fix the docs because the interface does not exist (#40308) 2021-01-25 16:29:13 -08: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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
structural-directives docs: rewrite structural-directives.md (#40015) 2021-03-01 15:32:26 -08:00
styleguide docs: add a style recommendation for initializing inputs (#40698) 2021-02-12 17:07:30 -08:00
template-expression-operators docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
template-reference-variables docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
template-syntax build(docs-infra): implement full template checking for examples (#40930) 2021-02-26 15:40:44 -08:00
testing docs: change ActivatedRouteStub code sample to work with strictNullChecks on (#41559) 2021-04-12 21:01:39 -07:00
toh-pt0 docs: specify fallback generic font family (#40254) 2021-01-06 07:09:27 -08:00
toh-pt1 docs: use the right tag in the HeroesComponent's template snippet (#41473) 2021-04-07 11:51:37 -07:00
toh-pt2 docs: improve accessibility of toh2 example (#40575) 2021-02-23 10:41:05 -08:00
toh-pt3 docs: fix issue #40941 (#40942) 2021-03-05 09:47:44 -08:00
toh-pt4 docs: fix ch 4 so it compiles in strict mode (#40970) 2021-02-24 07:57:53 -08:00
toh-pt5 docs(docs-infra): fix (+) not accepting null error by using `Number` instead (#41570) 2021-04-12 21:08:21 -07:00
toh-pt6 docs: simplify deleteHero method in tutorial (#41303) 2021-03-22 08:54:53 -07: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: update docs to use new zone.js entry-points (#40823) 2021-02-24 07:58:29 -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 docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -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 docs: fix some typos in angular.io examples (#41093) 2021-03-05 15:08:11 -08:00
upgrade-phonecat-3-final docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
user-input docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
what-is-angular docs: fix some typos in angular.io examples (#41093) 2021-03-05 15:08:11 -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