How to send data in prompt popup box

var myPopup = $ionicPopup.show({
            template: '<input type="number" ng-model="group.mobno"></input>',

            title: 'massage box',

            scope: $scope,
            buttons: [
              { text: 'Cancel' },
              {
                  text: '<b>send</b>',
                  type: 'button-positive',
                  onTap: function (e) {
                      if (!$scope.group.mobno) {

                          document.addEventListener("deviceready", function () {
                              var options = {
                                  replaceLineBreaks: false, // true to replace \n by a new line, false by default
                                  android: {
                                      intent: '' // send SMS with the native android SMS messaging
                                      //intent: '' // send SMS without open any other app
                                      //intent: 'INTENT' // send SMS inside a default SMS app
                                  }
                              };