Using right-button in the ion-header-bar to submit a form

I just found an ugly way taking hint from Calendee’s post above that first button is taken as submit button.
@kurokocon – I had the same trouble with validation and this way it work with validation code too.
I wrapped the whole code in form element and place the right header button as submit button and it works. Like so…

<ion-view title="Title">
    <form>
     <ion-header-bar>
    </ion-header-bar>
    <ion-content>
    </ion-content>
   </form>
</ion-view>
1 Like