File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ The `useFactory` syntax allows for creating providers **dynamically**. The actua
240
240
241
241
``` typescript
242
242
@@filename ()
243
- const connectionFactory = {
243
+ const connectionProvider = {
244
244
provide: ' CONNECTION' ,
245
245
useFactory : (optionsProvider : OptionsProvider , optionalProvider ? : string ) => {
246
246
const options = optionsProvider .get ();
@@ -254,14 +254,14 @@ const connectionFactory = {
254
254
255
255
@Module ({
256
256
providers: [
257
- connectionFactory ,
257
+ connectionProvider ,
258
258
OptionsProvider ,
259
259
// { provide: 'SomeOptionalProvider', useValue: 'anything' },
260
260
],
261
261
})
262
262
export class AppModule {}
263
263
@@switch
264
- const connectionFactory = {
264
+ const connectionProvider = {
265
265
provide: ' CONNECTION' ,
266
266
useFactory : (optionsProvider , optionalProvider ) => {
267
267
const options = optionsProvider .get ();
@@ -275,7 +275,7 @@ const connectionFactory = {
275
275
276
276
@Module ({
277
277
providers: [
278
- connectionFactory ,
278
+ connectionProvider ,
279
279
OptionsProvider ,
280
280
// { provide: 'SomeOptionalProvider', useValue: 'anything' },
281
281
],
You can’t perform that action at this time.
0 commit comments