从数据库中删除后如何正确显示Angular JS中的记录

can you please advice what is wrong with this code? When I click on X, record is correctly deleted from database but no updated table is displayed.

http://michalurban.cz/angular/

Here you can find PHP code from delete.php:

$sql = "DELETE FROM kosmonaut WHERE id=$id";
$delete = mysqli_query($conn,$sql);
if(!$delete){
    echo mysqli_error($conn);
}else {
    $sql = "SELECT * FROM kosmonaut";
    $dotaz = mysqli_query($conn, $sql);

    $output = array();

    if(mysqli_num_rows($dotaz) >= 1){
        while($radek = mysqli_fetch_assoc($dotaz)){
           $output[] = $radek;
        }
    }

    echo json_encode($output);
}