Need help with $ionicPopup list

The below example displays the popup list. What is needed to activate a selection when it is clicked on in the list.
Could not find an example in the documentation or at Codepen.
Thanks in advance.

$scope.selectItem = function(){
  $scope.listdata = [];

  angular.forEach(Items.getItems(), function (item) {
    $scope.listdata.push(item.name);
  });

  var listPopup = $ionicPopup.show({
    template: '<ion-list>                                '+
    '  <ion-item ng-repeat="item in listdata"> '+
    '    {{item}}                              '+
    '  </ion-item>                             '+
    '</ion-list>                               ',

    title: 'Select an item',
    scope: $scope,
    buttons: [
      { text: 'Cancel' }
    ]
  });
  listPopup.then(function(res) {
    console.log('Selected', res);
  });
};