module.directive('myCustomer', function() {
return {
restrict: 'EA',
replace: true,
scope: true,
template:'<ul><li ng-repeat="item in locations">{{item.title}}</li></ul>',
controller: function($scope){
// console.log($scope.item);
},
link: function(scope, Element, iAttrs) {
Element.click(function(){
alert(scope);
console.log(scope);
})
}
};
});