Skip to content
Snippets Groups Projects
  • Kegan Dougal's avatar
    5dbceaf5
    Added event handler service which.. handles events. More specifically, it... · 5dbceaf5
    Kegan Dougal authored
    Added event handler service which.. handles events. More specifically, it $broadcasts events depending on their type, and does processing on events (shuffling keys, adding events to $rootScope so displays will automatically update, sending delivery receipts, and so on). Some of this logic was previously contained in the RoomController, which fails the moment you add >1 room into the mix, hence requiring a Service to handle events, rather than having each individual controller maintain their part of the world.
    5dbceaf5
    History
    Added event handler service which.. handles events. More specifically, it...
    Kegan Dougal authored
    Added event handler service which.. handles events. More specifically, it $broadcasts events depending on their type, and does processing on events (shuffling keys, adding events to $rootScope so displays will automatically update, sending delivery receipts, and so on). Some of this logic was previously contained in the RoomController, which fails the moment you add >1 room into the mix, hence requiring a Service to handle events, rather than having each individual controller maintain their part of the world.