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:

First attempt to workaround takes advantage that data.response is ng-model for input text value in default template:

Final workaround has to redefine buttons (and knowledge that default template uses data.response):

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



I achieved the same functionality using this