I think you need to adjust this: In a controller if you want to use a variable is sent by view as ng-click(val) , let use $variable in function of controller
recipeListController
App.controller(“recipeListController”, function($scope,recipeService) {
$scope.recepies=[{"name":"dinner"},{"name":"breakfast"}];
$scope.setRecipe=function($val){
recipeService.selectedRecipe=$val;
//and your redirection stuff goes here.
};
});