text: (function () {
  	'use strict';
  
  	/**
  	 * Name: app/scripts/controllers/admin/recipe_delete/recipe-recipe.ctrl.js
  	 * Author: MashUp
  	 * Mail. info@mashup-unipd.it
  	 *
  	 * Modify
  	 * Version  Date        Author          Desc
  	 * ==========================================================
  	 * 0.0.1  2015-06-03  Tesser Paolo  code module
  	 * -----------------------------------------------------------
  	 *
  	 */
  
  	/**
  	 * @ngdoc function
  	 * @name app.controller:RecipeDeleteCtrl
  	 * @description
  	 * # RecipeCtrl
  	 * Controller of the app
  	 */
  
  	function RecipeDeleteCtrl(recipeAdminService, $scope) {
  
  		var vm = this;
  
  		vm.deleteRecipe = deleteRecipe;
  
  		////////////////
  
  		/**
  		 * This function calls deleteRecipe on the service and alerts parent that an element of recipe's
  		 * array was removed
  		 * @param idRecipe
  		 * @param index
  		 */
  		function deleteRecipe(idRecipe, index){
  
  			// promise, and it's success deletes recipe in the local variables in parent ctrl and set variables to show success message
  			recipeAdminService.deleteRecipe(idRecipe, index)
  				.then(function(){
  					$scope.$emit('deleteRecipe', index);
  				});
  
  		}
  
  	}
  
  	RecipeDeleteCtrl.$inject = ['recipeAdminService', '$scope'];
  
  	angular
  		.module('app')
  		.controller('RecipeDeleteCtrl', RecipeDeleteCtrl);
  
  })();
  