@@ -28,8 +28,7 @@ export interface InjectDecorator {
2828 * When `@Inject()` is not present, the injector uses the type annotation of the
2929 * parameter as the provider.
3030 *
31- * <code-example path="core/di/ts/metadata_spec.ts" region="InjectWithoutDecorator">
32- * </code-example>
31+ * {@example core/di/ts/metadata_spec.ts region='InjectWithoutDecorator'}
3332 *
3433 * @see [Dependency Injection Guide](guide/di/dependency-injection
3534 *
@@ -81,8 +80,7 @@ export interface OptionalDecorator {
8180 *
8281 * The following code allows the possibility of a `null` result:
8382 *
84- * <code-example path="core/di/ts/metadata_spec.ts" region="Optional">
85- * </code-example>
83+ * {@example core/di/ts/metadata_spec.ts region='Optional'}
8684 *
8785 * @see [Dependency Injection Guide](guide/di/dependency-injection.
8886 */
@@ -127,8 +125,7 @@ export interface SelfDecorator {
127125 * by the local injector when instantiating the class itself, but not
128126 * when instantiating a child.
129127 *
130- * <code-example path="core/di/ts/metadata_spec.ts" region="Self">
131- * </code-example>
128+ * {@example core/di/ts/metadata_spec.ts region='Self'}
132129 *
133130 * @see {@link SkipSelf }
134131 * @see {@link Optional }
@@ -173,8 +170,7 @@ export interface SkipSelfDecorator {
173170 * In the following example, the dependency can be resolved when
174171 * instantiating a child, but not when instantiating the class itself.
175172 *
176- * <code-example path="core/di/ts/metadata_spec.ts" region="SkipSelf">
177- * </code-example>
173+ * {@example core/di/ts/metadata_spec.ts region='SkipSelf'}
178174 *
179175 * @see [Dependency Injection guide](guide/di/di-in-action#skip).
180176 * @see {@link Self }
@@ -218,8 +214,7 @@ export interface HostDecorator {
218214 *
219215 * The following shows use with the `@Optional` decorator, and allows for a `null` result.
220216 *
221- * <code-example path="core/di/ts/metadata_spec.ts" region="Host">
222- * </code-example>
217+ * {@example core/di/ts/metadata_spec.ts region='Host'}
223218 *
224219 * For an extended example, see ["Dependency Injection
225220 * Guide"](guide/di/di-in-action#optional).
0 commit comments