angular-cn/aio/content/guide
Kara Erickson a96976e88f fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#30576)
BREAKING CHANGE

In PR #19558, we fixed a bug in `TestBed.overrideProvider` where
eager providers were not being instantiated correctly. However,
it turned out that since this bug had been around for quite a bit,
many apps were relying on the broken behavior where the providers
would not be instantiated. To assist in the transition, the
`TestBed.deprecatedOverrideProvider` method was temporarily
introduced to mimic the old behavior so that apps would have a
longer time period to migrate their code.

2 years and 3 versions later, it is time to remove the temporary
method. This commit removes `TestBed.deprecatedOverrideProvider`
altogether. Any usages of `TestBed.deprecatedOverrideProvider`
should be replaced with `TestBed.overrideProvider`. This may mean
that providers that were not created before will now be instantiated,
which could mean that your tests need to provide more mocks or stubs
for the dependencies of the newly instantiated providers.

PR Close #30576
2019-05-21 12:37:17 -07:00
..
ajs-quick-reference.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
animations.md docs: fix typo in animations doc (#30457) 2019-05-15 14:26:11 -07:00
aot-compiler.md style: change to American English (#27266) 2019-01-29 16:30:25 -08:00
app-shell.md docs: add app shell guide (#28591) 2019-03-21 15:54:26 -07:00
architecture-components.md docs: change reference to jQuery programmers (#30386) 2019-05-13 10:49:26 -07:00
architecture-modules.md docs: re-phrase note in architecture guide for clarity (#28543) 2019-02-26 08:39:16 -08:00
architecture-next-steps.md docs: fix links to setup and cli docs (#26463) 2018-10-16 14:14:19 -07:00
architecture-services.md docs: fix typo (#26878) 2018-11-13 10:49:35 -08:00
architecture.md docs: fix explanation of Injectable decorator in architecture guide (#27480) 2019-01-22 10:18:05 -08:00
attribute-directives.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
bazel.md docs(bazel): add aio/guide/bazel (#30042) 2019-04-24 17:01:59 -07:00
bootstrapping.md docs: change links to cli wiki to link to new aio docs (#26489) 2018-10-17 11:06:34 -07:00
browser-support.md docs: add browser polyfills for IE11 with hash-based routing (#27135) 2019-01-14 10:33:23 -08:00
build.md docs(aio): clarify "next to" as "same directory" (#30099) 2019-04-25 17:20:29 -07:00
cheatsheet.md docs(aio): add short description for entryComponents (#21360) 2018-07-31 13:18:36 -07:00
comparing-observables.md docs: fix spelling errors (#26213) 2018-10-05 14:18:19 -07:00
complex-animation-sequences.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
component-interaction.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
component-styles.md docs: change links to cli wiki to link to new aio docs (#26489) 2018-10-17 11:06:34 -07:00
creating-libraries.md docs: add architect terms (#26963) 2019-04-29 13:22:20 -07:00
dependency-injection-in-action.md docs: clarify behavior of dependency injection at root injector (#28753) 2019-02-19 12:33:48 -08:00
dependency-injection-navtree.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
dependency-injection-providers.md docs: remove coremodule references (#28434) 2019-03-29 10:29:51 -07:00
dependency-injection.md docs: fix grammatical errors in the guides and API documentation (#29928) 2019-04-22 17:32:30 -07:00
deployment.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
deprecations.md fix(core): remove deprecated `TestBed.deprecatedOverrideProvider` API (#30576) 2019-05-21 12:37:17 -07:00
displaying-data.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
docs-style-guide.md docs: update authors style guide to highlight related guidelines and position these guidelines (#28481) 2019-04-09 12:23:09 -07:00
dynamic-component-loader.md docs: fix dynamic-component-loader example for Adblock Plus + EasyList (#27212) 2018-11-30 13:35:38 -08:00
dynamic-form.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
elements.md docs(elements): add "Firefox" for support of custom elements (#27789) 2018-12-26 11:27:45 -08:00
entry-components.md docs: update bootstrapping and entry component guide to use httpclient (#25178) 2018-07-30 16:00:19 -07:00
feature-modules.md docs: describe your change... (#26784) 2018-10-30 13:49:12 -04:00
file-structure.md docs: add library structure (#29376) 2019-03-27 09:42:54 -07:00
form-validation.md docs: fix ngModel typo in form validation guide (#27574) 2018-12-11 16:22:58 -08:00
forms-overview.md docs: forms overview copy edit (#26450) 2018-10-19 11:08:47 -07:00
forms.md docs: change links to cli wiki to link to new aio docs (#26489) 2018-10-17 11:06:34 -07:00
frequent-ngmodules.md docs: change links to cli wiki to link to new aio docs (#26489) 2018-10-17 11:06:34 -07:00
glossary.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
hierarchical-dependency-injection.md docs(core): DI module-level info fix (#29756) 2019-04-09 12:23:43 -07:00
http.md docs: fix grammatical errors in the guides and API documentation (#29928) 2019-04-22 17:32:30 -07:00
i18n.md docs: use correct values from `code-example` in i18n (#29920) 2019-04-16 10:31:16 -07:00
ivy.md docs: update ivy preview page (#30355) 2019-05-14 12:17:26 -07:00
language-service.md docs: add missing window key shortcut to language service guide (#29613) 2019-04-01 11:28:12 -07:00
lazy-loading-ngmodules.md docs: use dynamic import syntax in examples using lazy loading (#30563) 2019-05-21 09:09:35 -07:00
libraries.md docs: add custom-element ref to library overview (#28476) 2019-04-01 12:04:06 -07:00
lifecycle-hooks.md docs: fix typo in lifecycle-hooks.md (#28206) 2019-01-29 16:32:02 -08:00
module-types.md docs: several minor `NgModule` guide fixes/improvements (#21589) 2018-01-18 18:22:20 -06:00
ngmodule-api.md docs: add api doc to commonly queried elements 2018-07-20 12:39:10 -07:00
ngmodule-faq.md docs: remove coremodule references (#28434) 2019-03-29 10:29:51 -07:00
ngmodule-vs-jsmodule.md docs: change links to cli wiki to link to new aio docs files m to z (#26492) 2018-10-17 11:06:07 -07:00
ngmodules.md docs: change links to cli wiki to link to new aio docs files m to z (#26492) 2018-10-17 11:06:07 -07:00
npm-packages.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
observables-in-angular.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
observables.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
pipes.md docs: add info regarding injecting custom pipes (#28291) 2019-04-02 10:38:36 -07:00
practical-observable-usage.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
providers.md docs: fix filename in example headers for provider guides (#29889) 2019-05-09 11:27:00 -07:00
reactive-forms.md docs: change doc for address form group in reactive forms guide (#30007) 2019-04-22 11:17:37 -07:00
releases.md docs: fix link from release info to deprecations (#26733) 2019-04-25 10:55:43 -07:00
reusable-animations.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
route-animations.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
router.md docs: use dynamic import syntax in examples using lazy loading (#30563) 2019-05-21 09:09:35 -07:00
rx-library.md docs: remove deprecated `fromPromise` from RxJS guide (#28015) 2019-01-09 15:37:52 -08:00
schematics-authoring.md docs: add schematics guide (#28343) 2019-03-19 15:47:14 -04:00
schematics-for-libraries.md docs: update readme. sentence correction. (#30136) 2019-04-26 16:36:53 -07:00
schematics.md docs: add schematics guide (#28343) 2019-03-19 15:47:14 -04:00
security.md docs(core): update security guide sanitize example (#26777) 2018-10-26 12:31:49 -04:00
service-worker-communications.md docs(service-worker): note about isStable/setInterval (#28102) 2019-02-06 15:13:19 -05:00
service-worker-config.md refactor(service-worker): DRY up SW registration logic (#21842) 2019-04-25 12:29:58 -07:00
service-worker-devops.md feat(service-worker): support bypassing SW with specific header/query param (#30010) 2019-04-25 13:09:44 -07:00
service-worker-getting-started.md feat(service-worker): allow configuring when the SW is registered (#21842) 2019-04-25 12:29:58 -07:00
service-worker-intro.md docs(service-worker): updated browser support for Service Worker (#26408) 2018-10-19 11:08:00 -07:00
set-document-title.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
setup-local.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
setup.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
sharing-ngmodules.md docs: several minor `NgModule` guide fixes/improvements (#21589) 2018-01-18 18:22:20 -06:00
singleton-services.md docs: fix example header in singleton services guide to match styleguide (#30097) 2019-05-06 09:19:36 -07:00
structural-directives.md docs: add note about ngModel usage in structural directives guide (#29522) 2019-03-29 10:26:15 -07:00
styleguide.md docs: improve consistency of style guide example (#30504) 2019-05-20 16:42:16 -07:00
template-syntax.md docs: fix incorrect header on custom event docs (#29784) 2019-04-09 12:23:59 -07:00
testing.md docs: fix minor typo in testing.md (#29464) 2019-03-22 10:59:21 -07:00
transition-and-triggers.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
typescript-configuration.md docs: remove quickstart example and copy tsconfig.1.json into TS config guide (#28592) 2019-02-11 17:09:24 +00:00
universal.md docs: update universal project structure (#29332) 2019-03-15 14:08:23 -04:00
updating.md docs: update deprecation practices, update release date, edits for readability and consistency (#29644) 2019-04-24 17:00:23 -07:00
upgrade-performance.md feat(upgrade): support downgrading multiple modules (#26217) 2018-11-05 16:33:55 -08:00
upgrade.md docs: add link to location upgrade config (#30331) 2019-05-16 11:47:16 -07:00
user-input.md fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips (#26396) 2018-10-17 11:05:29 -07:00
using-libraries.md docs: clarify library types integration (#28410) 2019-02-11 17:13:44 +00:00
visual-studio-2015.md docs: move old quick start content into new local setup guide (#29651) 2019-05-20 10:16:23 -07:00
web-worker.md docs: add Web Worker guide (#29633) 2019-04-01 15:31:47 -07:00
workspace-config.md docs: remove reference to e2e applications (#30324) 2019-05-09 11:23:05 -07:00