unitEditor.js 501 B

1234567891011121314151617
  1. /**
  2. * A pane that displays/edits unit objects
  3. */
  4. (function() {
  5. (function() {
  6. try {return angular.module('ieat.ui.editors')}
  7. catch {return angular.module('ieat.ui.editors', ['ndbDatabase', 'Units'])}}
  8. )().component('unitEditor', {
  9. templateUrl: 'static/templates/unitEditor.html',
  10. bindings: {
  11. unit: '<'
  12. },
  13. controller: ['$scope', function($scope) {
  14. $scope.unitTypes = ["Mass", "Volume", "Count"];
  15. }]
  16. });
  17. })();