<input type="button" class="someSelector" value="Button text">
plus everywhere scripts like this:
<script> $('.someSelector').button(); </script>
...you will have it done like this instead:
<input type="button" my:button value="Button text">
plus an application-wide definition of a directive.
See documentation/tutorial on how to create your own directive. In
AngularJS 0.10.x (and maybe on 0.9.x), it will be something like this:
angular.directive('my:button', function(expression, compiledElement) {
return function(linkElement) {
linkElement.button();
}
});
Note that the syntax above will be changed (simplified) soon, but the
overall approach will remain.
Regards,
Witold Szczerba
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to ang...@googlegroups.com.
> To unsubscribe from this group, send email to
> angular+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/angular?hl=en.