<div input-directive class-name="globalInput" post-comment="moduleService.postComment($event, comment)" msg-placeholder="Redija um comentario..." class="mainComment"></div>
.directive('inputDirective', function(){
return {
restrict: 'A',
scope: {
postComment: '&',
msgPlaceholder: '@',
className: '@'
},
template: "<textarea ng-model='comment' class='{{className}}' placeholder='{{msgPlaceholder}}' "+
"ng-keyup='postComment( {event: $event}, {comment: comment} )'></textarea>"
};
});
this.postComment = function(event, comment){
//EVENT IS UNDEFINED
}
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/O5yj3FN45c8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.