Think we need to make an ajax call to server to get details of a set of student and display when a button clicked.
Here is the complete code for that scenario and I will explain later what happens there.
<!DOCTYPE html>
<html>
<head>
<title>Ajax With Angular</title>
<style>
table, th , td {
border: 1px solid grey;
border-collapse: collapse;
padding: 5px;
}
th{
background: lightgray;
}
</style>