events
Listen for events like click, touch, etc in a template using attributes.
Installation
Install with component(1):
$ component install ripplejs/events
API
A template can use on-*
to emit events on the view.
Save
This can be any type of event, eg: on-dblclick
, on-touch
, on-keydown
. The node just needs to emit the event after the on-
portion of the attribute.
var events = ;var ripple = ; // Compile the viewvar View = ; // Use the pluginView; // Listen for the eventsViewprototype{ // Do things};
You can also pass data to the directive and it will update automatically:
Save
or pass it through filters:
Save
License
MIT