Skip to content

Instantly share code, notes, and snippets.

@manderly
Created November 7, 2014 03:12
Show Gist options
  • Select an option

  • Save manderly/9db712804d635a0f23ec to your computer and use it in GitHub Desktop.

Select an option

Save manderly/9db712804d635a0f23ec to your computer and use it in GitHub Desktop.
CBM.com admin controller changeIngredient method
$scope.changeIngredient = function(index) {
if (index == $scope.formMeal.ingredients.length -1) {
$scope.formMeal.ingredients.push('');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment