Class: AppStoriesController

AppStoriesDirectives~ AppStoriesController


new AppStoriesController($scope, $element)

The controller governing the directive's state and it's interaction with
the outside world.

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

$element

a reference to the element the component is assigned to

Source:

Methods


<static> factory($scope, $element)

Factory to create the controller; used as the .controller member of the
directive

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

$element

a reference to the element the component is assigned to

Source:

goToStory(storyId)

Function to set the controller attributes to jump to a specific stories

Parameters:
Name Type Description
storyId

the story to jump to

Source:

tellStoryHandler()

Function to "tell the current story" - is invoked every time the current
story changed and plugs all values from the story object and transforms
them to the highlight object so that the areas of a graph are highlighted.
Only tells the story if highlights.looseness < 2.

Source: