diff --git a/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache b/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache index 7d400e8f2b6..c82000979a5 100644 --- a/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache +++ b/modules/swagger-codegen/src/main/resources/typescript-angularjs/api.mustache @@ -73,9 +73,11 @@ export class {{classname}} { let httpRequestParams: ng.IRequestConfig = { method: '{{httpMethod}}', url: localVarPath, - {{#bodyParam}}data: {{paramName}}, + {{#bodyParam}} + data: {{paramName}}, {{/bodyParam}} - {{#hasFormParams}}data: this.$httpParamSerializer(formParams), + {{#hasFormParams}} + data: this.$httpParamSerializer(formParams), {{/hasFormParams}} params: queryParameters, headers: headerParams diff --git a/samples/client/petstore/typescript-angularjs/git_push.sh b/samples/client/petstore/typescript-angularjs/git_push.sh index ed374619b13..ae01b182ae9 100644 --- a/samples/client/petstore/typescript-angularjs/git_push.sh +++ b/samples/client/petstore/typescript-angularjs/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git