Browse Source

fix: add comma after params in service schematics

pull/5137/head
Arman Ozak 6 years ago
parent
commit
2fc7161349
  1. 2
      npm/ng-packs/packages/schematics/src/commands/api/files-service/shared/services/__namespace@dir__/__name@kebab__.service.ts.template

2
npm/ng-packs/packages/schematics/src/commands/api/files-service/shared/services/__namespace@dir__/__name@kebab__.service.ts.template

@ -13,7 +13,7 @@ export class <%= name %>Service {
method: '<%= body.method %>',
url: `/<%= body.url %>`,<%
if (body.params.length) { %>
params: { <%= body.params.join(', ') %> }<% }
params: { <%= body.params.join(', ') %> },<% }
if (body.body) { %>
body: <%= body.body %>,<% } %>
},

Loading…
Cancel
Save