| 1234567891011121314151617181920212223242526 |
- /**
- * 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"
- });
- };
- }]
- });
- })();
|