Skip to content

Commit 58ba24e

Browse files
committed
1 parent ff132fc commit 58ba24e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/angular-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Angular support
22

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"fetch",
2323
"xhr",
2424
"axios",
25+
"angular",
2526
"node"
2627
],
2728
"maintainers": [

src/templates/exportService.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class {{{name}}}{{{@root.postfix}}} {
124124
{{#if errors}}
125125
errors: {
126126
{{#each errors}}
127-
{{{code}}}: `{{{description}}}`,
127+
{{{code}}}: `{{{escapeDescription description}}}`,
128128
{{/each}}
129129
},
130130
{{/if}}

0 commit comments

Comments
 (0)