Hi everyone.
I have a question. I'm trying to get the courses from a REST server. I'm using controller like this:
function ListCtrl($scope, $http) {
$http.get('
https://canvas.instructure.com/api/v1/courses?access_token=<access_token>').success(function(data) {
$scope.courses = data;
});
}
The template is like this:
<tr ng-repeat="course in courses">
<td><a href="{{
course.id}}" target="_blank">{{
course.name}}</a></td>
<td>{{course.course_code}}</td>
</tr>
But the codes seem don't work.
May i make any mistake here ?
Thank you for reading.