Inject ApiService to be accessible in the body react component
This commit is contained in:
parent
eb363876cd
commit
a7594d6e57
2 changed files with 7 additions and 4 deletions
|
@ -14,8 +14,8 @@ export function rpDirectives(){
|
|||
return reactDirective(repoSidebar);
|
||||
});
|
||||
|
||||
angular.module('quayPages').directive('rpBody', function(reactDirective) {
|
||||
return reactDirective(repoBody);
|
||||
angular.module('quayPages').directive('rpBody', function(reactDirective, ApiService) {
|
||||
return reactDirective(repoBody, undefined, {}, {api: ApiService});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue