selected-meals.html 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <div class="selected-meals" ng-controller="SelectMenuPageController">
  2. <h2>Breakfast</h2>
  3. <div ng-repeat="meal in meals">
  4. <p ng-if="meal.type == 'breakfast' && meal.isSelected == true">{{meal.mealName}} | {{meal.isSelected}}
  5. <button type="button" name="button" ng-click="deleteMeal($index)">Delete</button>
  6. </p>
  7. </div>
  8. <hr>
  9. <h2>Lunch</h2>
  10. <div ng-repeat="meal in meals">
  11. <p ng-if="meal.type == 'lunch' && meal.isSelected == true">{{meal.mealName}} | {{meal.isSelected}}
  12. <button type="button" name="button" ng-click="deleteMeal($index)">Delete</button>
  13. </p>
  14. </div>
  15. <hr>
  16. <h2>Dinner</h2>
  17. <div ng-repeat="meal in meals">
  18. <p ng-if="meal.type == 'dinner' && meal.isSelected == true">{{meal.mealName}} | {{meal.isSelected}}
  19. <button type="button" name="button" ng-click="deleteMeal($index)">Delete</button>
  20. </p>
  21. </div>
  22. <hr>
  23. <h2>Snacks</h2>
  24. <div ng-repeat="meal in meals">
  25. <p ng-if="meal.type == 'snacks' && meal.isSelected == true">{{meal.mealName}} | {{meal.isSelected}}
  26. <button type="button" name="button" ng-click="deleteMeal($index)">Delete</button>
  27. </p>
  28. </div>
  29. </div>