I am applying code to my project run by this guy https://github.com/simpulton/angular-photo-slider/blob/master/js/app.js. He has a little syntax error already, and the console tells you about it, but after I fixed it the console just gives the vague "SyntaxError: syntax error" message. Here's what I've been trying to do:
var app = angular.module('LOC Search', ['ngAnimate']);
app.controller('locListCtrl', ['$scope', function ($scope, $http)) {
$http.jsonp('http://loc.gov/pictures/collections?fo=json&callback=process=JSON_CALLBACK').success(function(data) {
$scope.slides = data.collections;
}
}]);
Does anyone have any suggestions? Also, different version of AngularJS will produce different results... Not sure which one to use with this particular example. THANKS!