-
-
Save codecademydev/189bbd677386ce3f5d41 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller('MainController', ['$scope','shows', function($scope, shows) { | |
shows.success(function(data){ | |
$scope.shows=data; | |
}); | |
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="img_container"> | |
<img class="img-responsive" ng-src="{{info.series_img}}" > | |
</div> | |
<h2 class="series">{{info.series}} </h2> | |
<p class="genre">{{info.genre}} </p> | |
<p class="run-start">{{info.run_start}} </p> | |
<p class="description">{{info.descirption}} </p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.factory('shows', ['$http', function($http){ | |
return $http.get('https://s3.amazonaws.com/codecademy-content/courses/ltp4/shows-api/shows.json').success(function(data) { | |
return data; | |
}).error(function(err) { | |
return err; | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment