I’ll use dangeross’ example: http://codepen.io/dangeross/pen/wvAjJ/
Open modal and then Add popup.
How to trigger ok button after selecting option? I don’t need two taps.
I thought that would be simple… However, it doesn’t seem the Popup has a public interface for closing - just showing. The buttons control them.
(function(ionic) {
'use strict';
angular.module('ionic.service.popup', ['ionic.service.templateLoad'])
/**
* @ngdoc service
* @name $ionicPopup
* @module ionic
* @restrict E
* @codepen zkmhJ
* @description
*
* The Ionic Popup service makes it easy to programatically create and show popup
* windows that require the user to respond in order to continue:
*
* The popup system has support for nicer versions of the built in `alert()` `prompt()` and `confirm()` functions
* you are used to in the browser, but with more powerful support for customizing input types in the case of
* prompt, or customizing the look of the window.
*
This file has been truncated. show original
Here was my attempt at putting an ng-click
on the selection items : http://codepen.io/calendee/pen/Hqrvz
If you really need that feature, maybe open a feature request. Perhaps someone else has a better idea?