This commit is contained in:
Ferdi Koomen 2022-01-31 19:38:23 +01:00
parent ff132fcf5d
commit 58ba24e5bc
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Angular support
This tool allows you to generate a client based on the [`Angular HttpClient`](https://angular.io/guide/http).
This tool allows you to generate a client based on the Angular [`HttpClient`](https://angular.io/guide/http).
The generated services are fully injectable and make use of the [RxJS](https://rxjs.dev/) Observer pattern.
If you want to generate the Angular based client then you can specify `--client angular` in the openapi call:

View File

@ -22,6 +22,7 @@
"fetch",
"xhr",
"axios",
"angular",
"node"
],
"maintainers": [

View File

@ -124,7 +124,7 @@ export class {{{name}}}{{{@root.postfix}}} {
{{#if errors}}
errors: {
{{#each errors}}
{{{code}}}: `{{{description}}}`,
{{{code}}}: `{{{escapeDescription description}}}`,
{{/each}}
},
{{/if}}