For a routing task, you can bind using an additional attribute for the path:
<a route="/api/login" on-tap="{{go}}">
and then in your go function:
void go(Event e, var detail, Element sender) {
e.preventDefault();
fire('change-route', detail: sender.attributes['route'] );
}
source
to share