{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4001","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4001/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4001/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4001/events","html_url":"https://github.com/driftyco/ionic/issues/4001","id":91376008,"number":4001,"title":"feat: Allow initial value for `$ionicPopup.prompt`","user":{"login":"davej","id":26971,"avatar_url":"https://avatars.githubusercontent.com/u/26971?v=3","gravatar_id":"","url":"https://api.github.com/users/davej","html_url":"https://github.com/davej","followers_url":"https://api.github.com/users/davej/followers","following_url":"https://api.github.com/users/davej/following{/other_user}","gists_url":"https://api.github.com/users/davej/gists{/gist_id}","starred_url":"https://api.github.com/users/davej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davej/subscriptions","organizations_url":"https://api.github.com/users/davej/orgs","repos_url":"https://api.github.com/users/davej/repos","events_url":"https://api.github.com/users/davej/events{/privacy}","received_events_url":"https://api.github.com/users/davej/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/ionitron:closed","name":"ionitron:closed","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T22:16:24Z","updated_at":"2015-11-24T22:21:54Z","closed_at":"2015-11-24T22:21:54Z","body":"**Type**: <span ionic-type>feat</span>\n\n**Platform**: <span ionic-platform>all</span>  \n\n<span ionic-description>`$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:\r\n\r\n```javascript\r\n$ionicPopup.prompt({\r\n   title: 'Email',\r\n   template: 'Enter your email address',\r\n   inputType: 'email',\r\n   inputPlaceholder: 'Your email',\r\n   inputInitialValue: 'my.existing.email@gmail.com'\r\n }).then(function(res) {\r\n   console.log('Your email is', res);\r\n });\r\n```</span>\n\n<span is-issue-template></span>\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/159425021","html_url":"https://github.com/driftyco/ionic/issues/4001#issuecomment-159425021","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/4001","id":159425021,"user":{"login":"Ionitron","id":6591344,"avatar_url":"https://avatars.githubusercontent.com/u/6591344?v=3","gravatar_id":"","url":"https://api.github.com/users/Ionitron","html_url":"https://github.com/Ionitron","followers_url":"https://api.github.com/users/Ionitron/followers","following_url":"https://api.github.com/users/Ionitron/following{/other_user}","gists_url":"https://api.github.com/users/Ionitron/gists{/gist_id}","starred_url":"https://api.github.com/users/Ionitron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ionitron/subscriptions","organizations_url":"https://api.github.com/users/Ionitron/orgs","repos_url":"https://api.github.com/users/Ionitron/repos","events_url":"https://api.github.com/users/Ionitron/events{/privacy}","received_events_url":"https://api.github.com/users/Ionitron/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T22:21:54Z","updated_at":"2015-11-24T22:21:54Z","body":"Greetings @davej!\n\nI'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.\n\nThank you for allowing me to assist you."}}