From 062fe5c2cf16a41e6b78ac703785accd4ab39f84 Mon Sep 17 00:00:00 2001 From: Simone Bigozzi Date: Thu, 4 Oct 2018 16:22:30 +0200 Subject: [PATCH] docs: fix transpiles link in dependency injection (#26250) fixed a double bracket that broke the link PR Close #26250 --- aio/content/guide/dependency-injection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/dependency-injection.md b/aio/content/guide/dependency-injection.md index 860e66f26c..9633a94b16 100644 --- a/aio/content/guide/dependency-injection.md +++ b/aio/content/guide/dependency-injection.md @@ -240,7 +240,7 @@ The `@Injectable()` decorator is the standard decorator for service classes.
- The decorator requirement is imposed by TypeScript. TypeScript normally discards parameter type information when it [transpiles]((guide/glossary#transpile) the code to JavaScript. TypeScript preserves this information if the class has a decorator and the `emitDecoratorMetadata` compiler option is set `true` in TypeScript's `tsconfig.json` configuration file. The CLI configures `tsconfig.json` with `emitDecoratorMetadata: true`. + The decorator requirement is imposed by TypeScript. TypeScript normally discards parameter type information when it [transpiles](guide/glossary#transpile) the code to JavaScript. TypeScript preserves this information if the class has a decorator and the `emitDecoratorMetadata` compiler option is set `true` in TypeScript's `tsconfig.json` configuration file. The CLI configures `tsconfig.json` with `emitDecoratorMetadata: true`. This means you're responsible for putting `@Injectable()` on your service classes.