Set default providedIn to root for angular client

Set default providedIn to root for angular client
This commit is contained in:
Shesh 2022-09-08 18:38:45 +05:30 committed by GitHub
parent dbb0612baa
commit aeacd77f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,9 @@ import { request as __request } from '../core/request';
{{/if}}
{{#equals @root.httpClient 'angular'}}
@Injectable()
@Injectable({
providedIn: 'root',
})
{{/equals}}
export class {{{name}}}{{{@root.postfix}}} {
{{#if @root.exportClient}}