You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/typescript-angular.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
25
25
|npmVersion|The version of your npm package. If not provided, using the version from the OpenAPI specification file.||1.0.0|
26
26
|nullSafeAdditionalProps|Set to make additional properties types declare that their indexer may return undefined||false|
27
27
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.||false|
28
-
|providedInRoot|Use this property to provide Injectables in root (it is only valid in angular version greater or equal to 6.0.0). IMPORTANT: Deprecated for angular version greater or equal to 9.0.0, use **providedIn** instead.||true|
29
-
|providedIn|Use this property to provide Injectables in wanted level (it is only valid in angular version greater or equal to 9.0.0).|<dl><dt>**none**</dt><dd>No providedIn (same as providedInRoot=false)</dd><dt>**root**</dt><dd>The application-level injector in most apps.</dd><dt>**platform**</dt><dd>A special singleton platform injector shared by all applications on the page.</dd><dt>**any**</dt><dd>Provides a unique instance in each lazy loaded module while all eagerly loaded modules share one instance.</dd></dl> |root|
28
+
|providedIn|Use this property to provide Injectables in wanted level (it is only valid in angular version greater or equal to 9.0.0).|<dl><dt>**root**</dt><dd>The application-level injector in most apps.</dd><dt>**none**</dt><dd>No providedIn (same as providedInRoot=false)</dd><dt>**any**</dt><dd>Provides a unique instance in each lazy loaded module while all eagerly loaded modules share one instance.</dd><dt>**platform**</dt><dd>A special singleton platform injector shared by all applications on the page.</dd></dl>|root|
29
+
|providedInRoot|Use this property to provide Injectables in root (it is only valid in angular version greater or equal to 6.0.0). IMPORTANT: Deprecated for angular version greater or equal to 9.0.0, use **providedIn** instead.||false|
30
30
|queryParamObjectFormat|The format for query param objects: 'dot', 'json', 'key'.||dot|
31
31
|serviceFileSuffix|The suffix of the file of the generated service (service<suffix>.ts).||.service|
32
32
|serviceSuffix|The suffix of the generated service.||Service|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -107,10 +107,17 @@ public TypeScriptAngularClientCodegen() {
107
107
"Use discriminators to create tagged unions instead of extending interfaces.",
"Use this property to provide Injectables in root (it is only valid in angular version greater or equal to 6.0.0).",
110
+
"Use this property to provide Injectables in root (it is only valid in angular version greater or equal to 6.0.0). IMPORTANT: Deprecated for angular version greater or equal to 9.0.0, use **providedIn** instead.",
111
111
false));
112
-
this.cliOptions.add(newCliOption(PROVIDED_IN,
113
-
"Use this property to provide Injectables in wanted level (it is only valid in angular version greater or equal to 9.0.0).").defaultValue("root"));
providedInOptions.put(PROVIDED_IN_LEVEL.none.toString(), "No providedIn (same as providedInRoot=false)");
116
+
providedInOptions.put(PROVIDED_IN_LEVEL.root.toString(), "The application-level injector in most apps.");
117
+
providedInOptions.put(PROVIDED_IN_LEVEL.platform.toString(), "A special singleton platform injector shared by all applications on the page.");
118
+
providedInOptions.put(PROVIDED_IN_LEVEL.any.toString(), "Provides a unique instance in each lazy loaded module while all eagerly loaded modules share one instance.");
119
+
providedInCliOpt.setEnum(providedInOptions);
120
+
this.cliOptions.add(providedInCliOpt);
114
121
this.cliOptions.add(newCliOption(NG_VERSION, "The version of Angular. (At least 6.0.0)").defaultValue(this.ngVersion));
115
122
this.cliOptions.add(newCliOption(API_MODULE_PREFIX, "The prefix of the generated ApiModule."));
116
123
this.cliOptions.add(newCliOption(CONFIGURATION_PREFIX, "The prefix of the generated Configuration."));
0 commit comments