directive:mohistory.viewportInfo source

Encapsulates listeners for window resize and scroll events. This information is stored on the rootScope so other directives can access it later.

Members

$inject

Methods

viewportInfoLink (scope, element, attrs)

Link function which adds event listeners to the angular Window object

Parameters:
NameTypeDescription
scope

an AngularJS scope object.

element

the jqLite-wrapped element that this directive matches.

attrs

a hash object with key-value pairs of normalized attribute names their corresponding attribute values.