according to the <https://angular-ui.github.io/bootstrap/#/modal>, I want to pass a result from modal to the parent without closing but in the example code, they only show a passing result to parent via closing

```
$uibModalInstance.close($scope.selected.item);

```

I want to pass a data to parent when the item is clicked but I do not know to do it. I really need help. Thanks.