js
getstudent: function(studentId){
$.ajax({
type: "POST",
url: baseURL + "platform/Student/info/"+studentId,
contentType: "application/json",
async: false,
success: function(result) {
// alert(JSON.stringify(result));
vm.student=result.student;
var cid = vm.student.cid;
$.ajax({
type: "POST",
url: baseURL + "platform/Classes/info/"+cid,
contentType: "application/json",
async: false,
success:function(result){
alert(JSON.stringify(result));
vm.student.gid=result.classes.gid;
}
})
}
})
},