diff --git a/aio/content/errors/NG2003.md b/aio/content/errors/NG2003.md index b8cfe87669..e833c18142 100644 --- a/aio/content/errors/NG2003.md +++ b/aio/content/errors/NG2003.md @@ -8,4 +8,4 @@ There is no injection token for a constructor parameter at compile time. [Inject @debugging Look at the parameter that throws the error and all uses of the class. This error is commonly thrown when a constructor defines parameters with primitive types like `string`, `number`, `boolean`, and `Object`. -Use the [@Injectable](api/core/Injectable) method or [@Inject](api/core/Inject) decorator from `@angular/core` to ensure that the type you are injecting is reified (has a runtime representation). Make sure to add a provider to this decorator so that you do not throw [NG0201: No Provider Found](errors/NG0201). +Use the `@Injectable` method or `@Inject` decorator from `@angular/core` to ensure that the type you are injecting is reified (has a runtime representation). Make sure to add a provider to this decorator so that you do not throw [NG0201: No Provider Found](errors/NG0201). diff --git a/aio/content/guide/deprecations.md b/aio/content/guide/deprecations.md index d7c8ca373f..a272fc6c3f 100644 --- a/aio/content/guide/deprecations.md +++ b/aio/content/guide/deprecations.md @@ -97,7 +97,7 @@ Tip: In the [API reference section](api) of this doc site, deprecated APIs are i | API | Replacement | Deprecation announced | Notes | | --- | ----------- | --------------------- | ----- | | [`DefaultIterableDiffer`](api/core/DefaultIterableDiffer) | n/a | v4 | Not part of public API. | -| [`ReflectiveInjector`](api/core/ReflectiveInjector) | [`Injector.create`](api/core/Injector#create) | v5 | See [`ReflectiveInjector`](#reflectiveinjector) | +| [`ReflectiveInjector`](api/core/ReflectiveInjector) | `{@link Injector#create Injector.create()}` | v5 | See [`ReflectiveInjector`](#reflectiveinjector) | | [`ReflectiveKey`](api/core/ReflectiveKey) | none | v5 | none | | [`defineInjectable`](api/core/defineInjectable) | `ɵɵdefineInjectable` | v8 | Used only in generated code. No source code should depend on this API. | | [`entryComponents`](api/core/NgModule#entryComponents) | none | v9 | See [`entryComponents`](#entryComponents) | diff --git a/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts b/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts index 2d58484fc6..14dced3048 100644 --- a/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts +++ b/aio/tests/deployment/e2e/smoke-tests.e2e-spec.ts @@ -62,7 +62,7 @@ describe(browser.baseUrl, () => { describe('(api docs pages)', () => { const textPerUrl: { [key: string]: string } = { - /* Class */ 'api/core/Injector': 'class injector', + /* Class */ 'api/core/Injector-0': 'class injector', /* Const */ 'api/forms/NG_VALIDATORS': 'const ng_validators', /* Decorator */ 'api/core/Component': '@component', /* Directive */ 'api/common/NgIf': 'class ngif', diff --git a/packages/core/src/di/interface/provider.ts b/packages/core/src/di/interface/provider.ts index 5504767610..65203a83da 100644 --- a/packages/core/src/di/interface/provider.ts +++ b/packages/core/src/di/interface/provider.ts @@ -250,7 +250,7 @@ export interface FactoryProvider extends FactorySansProvider { * Describes how an `Injector` should be configured as static (that is, without reflection). * A static provider provides tokens to an injector for various types of dependencies. * - * @see [Injector.create()](/api/core/Injector#create). + * @see `Injector.create()`. * @see ["Dependency Injection Guide"](guide/dependency-injection-providers). * * @publicApi