Merge pull request #5 from dcowden/next

Dynamic Source code display fix
This commit is contained in:
Richard Lawson 2014-08-24 14:18:31 -04:00
commit eaad78099d
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@
<h4>Lesson Source Code</h4> <h4>Lesson Source Code</h4>
<div class="panel" > <div class="panel" >
<div class="panel-body"> <div class="panel-body">
{{lessonSource}} <pre>{{lessonSource}}</pre>
</div> </div>
</div> </div>
</div> </div>

View File

@ -35,7 +35,7 @@ goat.controller('goatLesson', function($scope, $http) {
console.log("Updating Lesson Source..."); console.log("Updating Lesson Source...");
$http.get('service/source.mvc').success( function(data){ $http.get('service/source.mvc').success( function(data){
$scope.lessonSource = data.message; $scope.lessonSource = data.source;
}).error( function(data){ }).error( function(data){
$scope.lessonSource = data.message; $scope.lessonSource = data.message;
console.log("LessonSource = '" + data.message + "'"); console.log("LessonSource = '" + data.message + "'");