   constructor: (@$timeout) ->
     event = EventService.getInstance()
     service = SentenceService.getInstance()
+
+    event.on 'question-service:changed', (questions) =>
+      @$timeout => @questions = questions
 
     event.on 'sentence-service:changed', (sentences) =>
       @$timeout => @sentences = sentences

{EventService} = require '../services/event-service'
{Question} = require '../models/question'
{SentenceService} = require '../services/sentence-service'

class Controller

    @translated = null

  generateQuestions: (sentence) ->
    service = QuestionService.getInstance()
    service.generateFromSentences @sentences

module.exports = ->
  bindToController: true
