In html side
<a our-click="save()">Save</a>In angularjs side(JavaScript)
.directive('ourClick', function() {return function(scope, element, attrs) {
event.stopPropagation();
selement.bind('touchstart click', function(event) {
event.preventDefault();
cope.$apply(attrs.ourClick);
});
};
});
0 comments:
Post a Comment