diff --git a/app/js/controllers/helpCtrl.js b/app/js/controllers/helpCtrl.js index 9ec7188..4925b02 100644 --- a/app/js/controllers/helpCtrl.js +++ b/app/js/controllers/helpCtrl.js @@ -1,7 +1,12 @@ "use strict"; -quizApp.controller('HelpCtrl', function HelpCtrl($scope, $location) { - $scope.back = function(){ +quizApp.controller('HelpCtrl', function HelpCtrl($scope, $resource, quizModel, $location) { + $resource('fixtures/questions.json').get(function (data) { + var quiz = quizModel.initialize(data); + $scope.quizSize = quiz.questionnaire.length; + $scope.duration = quiz.duration; + }); + $scope.back = function () { $location.path('/'); - } + }; }); diff --git a/app/templates/helpView.html b/app/templates/helpView.html index 37cb849..4809349 100644 --- a/app/templates/helpView.html +++ b/app/templates/helpView.html @@ -3,8 +3,8 @@
  • The score obtained at the end of the Quiz is sum of weights of the questions answered correctly
  • All the questions do not have the same weight
  • If you do not answer the question in the time limit the question is passed
  • -
  • There are {{quiz.questionnaire.length}} questions
  • -
  • Each question has time limit of {{quiz.duration}} seconds
  • +
  • There are {{quizSize}} questions
  • +
  • Each question has time limit of {{duration}} seconds