This service allows access to the joke which has been generated/fetched by the login page and displayed there. It does not handle the actual fetching from Group Control of the joke, but merely sets or gets the joke, which the Login page loaded. It should probably not be used externally to ember-fw-gc.

Show:

Methods

Properties

getJoke () DS.Model

This function returns the current internal joke model, which has been previously set.

Returns:

DS.Model:

The model of the joke which is currently being displayed on the login screen.

setJoke
(
  • joke
)

This function will take a model which is returned from the network request and set the internal joke property

Parameters:

  • joke DS.Model

    The joke model that was returned from the network request to Group Control

joke

DS.Model protected

Internal joke model. Easiest to use the getter and setters provided rather than calling directly.