Using ionicPopup prompt for editing text

I have already started a Feature request issue, but I figured I should post in the forum in case someone else here has a better idea:

  1. I wanted to use an ionicPopup.prompt() to edit a text value, but couldn’t find a way to pre-populate the input text value. So, I requested an inputText option:

I also created the following codepens to illustrate the problem.

Desired syntax:
http://codepen.io/danielzen/pen/sqLfa

First attempt to workaround takes advantage that data.response is ng-model for input text value in default template:
http://codepen.io/danielzen/pen/kotEw

Final workaround has to redefine buttons (and knowledge that default template uses data.response):
http://codepen.io/danielzen/pen/LFKjl/

I think having an inputText option would be a valuable addition to the design.

Thanks,
Daniel

1 Like

I achieved the same functionality using this http://codepen.io/anon/pen/oXobYG?editors=101