angular-cn/aio/content/examples
Jacob Foshee fe1ada86e8 docs: add missing return to example storage.service.ts (#31434)
While JavaScript does support implicit returns, it seems TypeScript will not infer the function return type from
the implicit return of the last statement (at least not in TS 3.4.3). So, when the `return` is missing from the
`get` function the implicit type of the function is `void`. So for the `get` function to be usable it needs to an
explicit return.

PR Close #31434
2020-11-20 08:28:56 -08:00
..
accessibility refactor(docs-infra): fix `strictTemplates` failures in `accessibility` docs example (#39248) 2020-10-16 16:09:07 -07:00
ajs-quick-reference refactor(docs-infra): update docs examples `tslint.json` to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
animations refactor(docs-infra): fix docs examples for tslint rules related to underscores in variable names (#38143) 2020-07-31 11:00:06 -07:00
architecture refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
attribute-binding docs: edit attribute-binding doc and move colSpan note to property binding (#38860) 2020-10-16 10:06:16 -07:00
attribute-directives docs: add documentation for ngNonBindable (#36560) 2020-11-17 11:56:46 -08:00
binding-syntax refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
bootstrapping docs: change wrong default app module by ng new (#38549) 2020-09-21 12:25:28 -07:00
built-in-directives refactor(docs-infra): update docs examples `tslint.json` to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
built-in-template-functions refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07: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 docs: use SimpleChanges in component interaction guide (#39342) 2020-10-26 10:47:31 -07:00
component-overview docs: Add Component Overview topic to angular.io (#39186) 2020-10-20 10:47:44 -07:00
component-styles feat(core): remove ViewEncapsulation.Native (#38882) 2020-10-08 11:56:03 -07:00
dependency-injection refactor(docs-infra): update docs examples `tslint.json` to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07:00
dependency-injection-in-action docs: add missing return to example storage.service.ts (#31434) 2020-11-20 08:28:56 -08:00
displaying-data refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
docs-style-guide refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
dynamic-component-loader refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
dynamic-form refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
elements refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
event-binding refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
feature-modules test(docs-infra): fix unit tests and run them for specific docs examples on CI (#36143) 2020-04-06 15:31:07 -07:00
form-validation refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
forms refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
forms-overview feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
getting-started style(docs-infra): fix docs examples for tslint rules related to whitespace (#38143) 2020-07-31 11:00:05 -07: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 refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
http build(docs-infra): update docs examples to Angular v10 (#38993) 2020-09-28 16:24:59 -04:00
i18n docs: remove duplicate trans-unit element closing tag (#38715) 2020-09-08 10:06:03 -07:00
inputs-outputs refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
interpolation refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
lazy-loading-ngmodules refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
lifecycle-hooks refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
ngcontainer docs: replace class hero to interface wherever class properties not used (#34022) 2019-11-25 11:37:39 -05:00
ngmodules refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07: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 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07: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: edit property binding doc (#38799) 2020-10-21 08:23:42 -07:00
providers refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` (#38143) 2020-07-31 11:00:06 -07:00
providers-viewproviders refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` (#38143) 2020-07-31 11:00:06 -07:00
reactive-forms refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` (#38143) 2020-07-31 11:00:06 -07:00
resolution-modifiers refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` (#38143) 2020-07-31 11:00:06 -07:00
router refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
router-tutorial docs: Add new section, tutorials, to left nav, and a tutorial on routing (#36545) 2020-05-05 11:51:19 -07: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 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
service-worker-getting-started docs(service-worker): add section to explain unrecoverable state (#36847) 2020-08-31 11:41:13 -07:00
set-document-title refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
setup feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
structural-directives refactor(docs-infra): fix docs examples for tslint rule `only-arrow-functions` (#38143) 2020-07-31 11:00:06 -07:00
styleguide docs: Remove confusion between do/avoid templates (#38647) 2020-08-31 10:25:16 -07:00
template-expression-operators refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
template-reference-variables docs: move template ref vars doc to concepts section clarify, add scope section, and update headers (#31195) 2020-10-28 14:41:44 -07:00
template-syntax style(docs-infra): fix docs examples for tslint rule `import-spacing` (#38143) 2020-07-31 11:00:05 -07:00
testing docs: use SimpleChanges in component interaction guide (#39342) 2020-10-26 10:47:31 -07:00
toh-pt0 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt1 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt2 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt3 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt4 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt5 refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
toh-pt6 docs: remove unused Input decorator (#38306) 2020-08-12 11:26:10 -07:00
two-way-binding docs: edit two-way binding doc (#38952) 2020-11-12 13:50:51 -08:00
universal refactor(docs-infra): update docs examples `tslint.json` to match CLI and fix failures (#38143) 2020-07-31 11:00:06 -07: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 refactor(docs-infra): fix docs examples for Angular-specific tslint rules (#38143) 2020-07-31 11:00:06 -07:00
upgrade-phonecat-1-typescript refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07:00
upgrade-phonecat-2-hybrid feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
upgrade-phonecat-3-final feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
user-input refactor(docs-infra): fix docs examples for tslint rule `prefer-const` (#38143) 2020-07-31 11:00:06 -07: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 v10 (#38993) 2020-09-28 16:24:59 -04:00