Skip to content

Commit

Permalink
docs: fix transpiles link in dependency injection (#26250)
Browse files Browse the repository at this point in the history
fixed a double bracket that broke the link

PR Close #26250
  • Loading branch information
beegotsy authored and mhevery committed Oct 11, 2018
1 parent 65555fe commit 50de03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/guide/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 50de03a

Please sign in to comment.