first commit
This commit is contained in:
20
templates/repository.provider.mustache
Normal file
20
templates/repository.provider.mustache
Normal file
@@ -0,0 +1,20 @@
|
||||
{{#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}}
|
||||
Reference in New Issue
Block a user