angular.module('myApp') .controller('rootController', function($scope) { $scope.clickHandler = function(item) { // do something with 'item' }; }) ;