awx/awx/ui/client/lib/components/table/table.directive.js
2017-06-26 10:53:57 -04:00

37 lines
785 B
JavaScript

function atTableLink (scope, element, attrs, controllers) {
let tableController = controllers[0];
tableController.init(scope, element);
}
function AtTableController (baseInputController) {
let vm = this || {};
vm.init = (scope, element) => {
};
}
AtTableController.$inject = ['BaseInputController'];
function atTable (pathService) {
return {
restrict: 'E',
transclude: true,
replace: true,
require: ['atTable'],
templateUrl: pathService.getPartialPath('components/table/table'),
controller: AtTableController,
controllerAs: 'vm',
link: atTableLink,
scope: {
state: '=',
col: '@'
}
};
}
atTable.$inject = ['PathService'];
export default atTable;