From 8ef3ee1e1b3289b8ce6dbc340508fb30e93309b4 Mon Sep 17 00:00:00 2001 From: dustinromey Date: Sat, 7 Feb 2015 18:45:34 -0400 Subject: [PATCH] Adds ngSelectChanged Adds ngSelectChanged, which fires with the ng-click once an item is selected from the modal, returning the item. I needed a way to get the selected item information after the user made a selection. Optionally used like this: ng-select-changed="coolFunction(item)" --- src/SelectBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SelectBox.js b/src/SelectBox.js index ee10416..e827c62 100644 --- a/src/SelectBox.js +++ b/src/SelectBox.js @@ -21,7 +21,7 @@ angular.module('$selectBox', []).directive('selectBox', function () { $scope.modal.remove(); }); - $scope.modal = $ionicModal.fromTemplate('' + '' + '

' + $attrs.ngTitle + '

' + ' ' + '
' + '' + '' + '' + '' + ' ' + '
', { + $scope.modal = $ionicModal.fromTemplate('' + '' + '

' + $attrs.ngTitle + '

' + ' ' + '
' + '' + '' + '' + '' + ' ' + '
', { scope: $scope, animation: 'slide-in-right' });