Files
openapi-clean-arch-gen/templates/repository.provider.mustache
Blas Santome Ocampo 5ff88d8cf6 first commit
2026-03-23 09:35:15 +01:00

21 lines
575 B
Plaintext

{{#apiInfo}}
{{#apis}}
{{#operations}}
import { Provider } from '@angular/core';
import { {{constantName}}_REPOSITORY } from '@/domain/repositories/{{classFilename}}.repository.contract';
import { {{classname}}RepositoryImpl } from '@/data/repositories/{{classFilename}}.repository.impl';
/**
* {{classname}} Repository Provider
* Binds the repository contract with its implementation
*/
export const {{classname}}RepositoryProvider: Provider = {
provide: {{constantName}}_REPOSITORY,
useClass: {{classname}}RepositoryImpl
};
{{/operations}}
{{/apis}}
{{/apiInfo}}