docs: fix transpiles link in dependency injection (#26250)

fixed a double bracket that broke the link

PR Close #26250
This commit is contained in:
Simone Bigozzi 2018-10-04 16:22:30 +02:00 committed by Miško Hevery
parent 4b494f23f5
commit 062fe5c2cf
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ The `@Injectable()` decorator is the standard decorator for service classes.
<div class="alert-is-helpful">
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.