|
|
@ -8,7 +8,7 @@ app.controller('InviteCodeController', ['$scope','$http', '$routeParams','config
|
|
|
|
|
|
|
|
|
|
|
|
vm.course = {};
|
|
|
|
vm.course = {};
|
|
|
|
var courseid = $routeParams.id;
|
|
|
|
var courseid = $routeParams.id;
|
|
|
|
$http.get(config.apiUrl+ 'courses/'+courseid+").then(
|
|
|
|
$http.get(config.apiUrl+ 'courses/'+courseid).then(
|
|
|
|
function(response){
|
|
|
|
function(response){
|
|
|
|
console.log(response.data);
|
|
|
|
console.log(response.data);
|
|
|
|
vm.course = response.data.data;
|
|
|
|
vm.course = response.data.data;
|
|
|
|