ionicPopup.confirm

Please help, how return value from ionicPopup ?

// A confirm dialog
$scope.showInputProp = function() {
     var confirmPopup = $ionicPopup.confirm({
         scope:$scope,
         title: 'myTitle',
         template: ' <label class="item-input-wrapper"><input  type="text" ng-value="prop_new_val" ng-model="prop_new_val"></label>'
     });
     confirmPopup.then(function(res) {
         if(res) {
            // ---- How to get value from input element ?
            //----- This does not work,why,
            //-- new_val=$scope.prop_new_val
            alert('New value is::'+new_val);
     
         } else {
             //alert('You are not sure');
         }
     });
};