ic-trigger-from - The Trigger From Attribute

Summary

The ic-trigger-from attribute tells Intercooler to watch another element in the DOM for events that will trigger a request.

Syntax

The value of the attribute should be either document, window or a valid jQuery selector for the element.

Dependencies

ic-trigger-from has no effect on dependencies.

Simple Example

Here is a div that is triggered by the click event of an otherwise unrelated button:

  <button id="myButton">Click Me</button>
  <div ic-get-from="/get_it" ic-trigger-from="#myButton">
    Not Loaded Yet...
  </div>
Not Loaded Yet...