foodList.js 682 B

12345678910111213141516171819202122
  1. (function() {
  2. (function() {
  3. try {return angular.module('ieat.ui')}
  4. catch {return angular.module('ieat.ui', [])}}
  5. )().component('foodList', {
  6. templateUrl: 'static/templates/foodList.html',
  7. bindings: {
  8. tableData: '<',
  9. structure: '<',
  10. selectText: '<',
  11. onSelect: '&'
  12. },
  13. controller: ['$scope', '$timeout', function($scope, $timeout) {
  14. var self = this;
  15. this.$onInit = function() {
  16. self.selectText = self.selectText || "Add";
  17. $scope.pageOffset = 0;
  18. $scope.pageSize = "10";
  19. };
  20. }]
  21. });
  22. })();