/** * A pane that displays/edits basic food objects */ (function() { (function() { try {return angular.module('ieat.ui.editors')} catch {return angular.module('ieat.ui.editors', ['ndbDatabase', 'ngResource', 'Food'])}} )().component('basicFoodEditor', { templateUrl: 'static/templates/basicFoodEditor.html', bindings: { ndbKey: '@', food: '<' }, controller: [ '$scope', 'NDBList', 'BasicFood', function($scope, NDBList, BasicFood) { var self = this; this.$onInit = function() { $scope.catagories = NDBList.get({ key: self.ndbKey, type: "g" }); }; }] }); })();