Named imports

This commit is contained in:
Ian Minoso 2016-11-01 02:51:18 -04:00
parent 9653cad53c
commit f92551a9d1
2 changed files with 14 additions and 11 deletions

View file

@ -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();

View file

@ -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);
});