module.directive('myCustomer', function() {
  return {
  	restrict: 'EA',
  	scope: {
  		item: "="
  	},
  	template: "<h1>{{item.title}}</h1>",
    controller: function($scope){
		// console.log($scope.item);
    },
    link: function(scope, Element, iAttrs) {
     Element.click(function(){
     	console.log(scope.item.children);
     })
    }
  };
});