Skip to content

Commit 926af61

Browse files
Merge pull request #148 from perlun/patch-1
Fixed typo
2 parents 5594dda + 0f8bdd4 commit 926af61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/article/en-US/dependency-injection-basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Notice that we use the `inject` decorator and that the constructor signature mat
151151
> Info
152152
> To use Decorators in Babel, you need the `babel-plugin-transform-decorators-legacy` plugin. To use them in TypeScript, you need to add the `"experimentalDecorators": true` setting to the `compilerOptions` section of your `tsconfig.json` file. Aurelia projects typically come with these options pre-configured.
153153
154-
If you are using TypeScript, you can take advantage of an experimental feature of the language to have the TypeScript transpiler automatically provide Type information to Aurelia's DI. You can do this by configuring the TypeScript compiler with the `"emitDecoratorMetadata": true` option in the `compilerOptions` section of your `tsconfig.json` file. If you do this, you don't need to duplicate the type information with `inject`, instead, as long as your constructor definition contains its paramaters' types, you can use Aurelia's `autoinject` decorator like this:
154+
If you are using TypeScript, you can take advantage of an experimental feature of the language to have the TypeScript transpiler automatically provide Type information to Aurelia's DI. You can do this by configuring the TypeScript compiler with the `"emitDecoratorMetadata": true` option in the `compilerOptions` section of your `tsconfig.json` file. If you do this, you don't need to duplicate the type information with `inject`, instead, as long as your constructor definition contains its parameters' types, you can use Aurelia's `autoinject` decorator like this:
155155

156156
<code-listing heading="CustomerEditScreen AutoInjection with TypeScript">
157157
<source-code lang="TypeScript">

0 commit comments

Comments
 (0)