Named imports
This commit is contained in:
parent
9653cad53c
commit
f92551a9d1
2 changed files with 14 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
import publicRepoDirectives from "./directives/components/components-repo-page/main";
|
||||
import {rpDirectives as publicRepo} from "./directives/components/components-repo-page/main";
|
||||
|
||||
// Init for each page
|
||||
publicRepoDirectives();
|
||||
publicRepo();
|
||||
|
|
|
@ -4,15 +4,18 @@ import repoHeader from "./header";
|
|||
import repoSidebar from "./sidebar";
|
||||
import repoMain from "./body";
|
||||
|
||||
angular.module('quayPages').directive('rpHeader', function(reactDirective) {
|
||||
return reactDirective(repoHeader);
|
||||
});
|
||||
export function rpDirectives(){
|
||||
angular.module('quayPages').directive('rpHeader', function(reactDirective) {
|
||||
return reactDirective(repoHeader);
|
||||
});
|
||||
|
||||
angular.module('quayPages').directive('rpSidebar', function(reactDirective) {
|
||||
return reactDirective(repoSidebar);
|
||||
});
|
||||
angular.module('quayPages').directive('rpSidebar', function(reactDirective) {
|
||||
return reactDirective(repoSidebar);
|
||||
});
|
||||
|
||||
angular.module('quayPages').directive('rpMain', function(reactDirective) {
|
||||
return reactDirective(repoMain);
|
||||
});
|
||||
}
|
||||
|
||||
angular.module('quayPages').directive('rpMain', function(reactDirective) {
|
||||
return reactDirective(repoMain);
|
||||
});
|
||||
|
Reference in a new issue