mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Initial commit
This commit is contained in:
17
app/js/directives/directive-component-select.js
Normal file
17
app/js/directives/directive-component-select.js
Normal file
@@ -0,0 +1,17 @@
|
||||
angular.module('app').directive('componentSelect', [ function() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope:{
|
||||
opts: '=',
|
||||
c: '=',
|
||||
ship: '='
|
||||
},
|
||||
templateUrl: 'views/component_select.html',
|
||||
link: function (scope) {
|
||||
scope.use = function(id, componentData) {
|
||||
scope.ship.use(scope.c, id, componentData);
|
||||
// hide this shit;
|
||||
};
|
||||
}
|
||||
};
|
||||
}]);
|
||||
Reference in New Issue
Block a user