Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow initial value for $ionicPopup.prompt #4001

Closed
davej opened this issue Jun 26, 2015 · 5 comments
Closed

feat: Allow initial value for $ionicPopup.prompt #4001

davej opened this issue Jun 26, 2015 · 5 comments

Comments

@davej
Copy link

davej commented Jun 26, 2015

Type: feat

Platform: all

$ionicPopup.prompt could handle a lot more use-cases if it accepted an initial value. Currently you need to do $ionicPopup.show + template + click handler + scope to do something that could easily be achieved with something like:

$ionicPopup.prompt({
   title: 'Email',
   template: 'Enter your email address',
   inputType: 'email',
   inputPlaceholder: 'Your email',
   inputInitialValue: 'my.existing.email@gmail.com'
 }).then(function(res) {
   console.log('Your email is', res);
 });
@davej davej changed the title Allow initial value for $ionicPopup.prompt feat: Allow initial value for $ionicPopup.prompt Jun 26, 2015
@jskrepnek
Copy link

+1

@Ionitron
Copy link
Collaborator

Greetings @davej!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

@gregallensworth
Copy link

@davej
Copy link
Author

davej commented Dec 4, 2015

@gregallensworth 👍, any luck with a PR?

@gregallensworth
Copy link

I only opened the PR a couple of hours ago:
#4705

It covers this issue, plus a few others.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants