angular.module('myApp', ['listxModule']); angular.module('listxModule').controller('MainCtrl', ['$scope', function($scope) { $scope.clickHandler = function(item) { alert(item.text + ' is selected') }; $scope.loadHandler = function() { console.log('items are loaded') }; $scope.nestedHandlers = { itemBtnClick: function(item, $event) { $event.cancelBubble = true; alert('Send Message to: ' + item.text); console.log(item, $event); } }; }]);
{{ item.text }}{{ item.desc }}Send Message