ic-trigger-from
- The Trigger From AttributeThe ic-trigger-from
attribute tells Intercooler to watch another element in the DOM for
events that will trigger a request.
The value of the attribute should be either document
, window
or a valid
jQuery selector for the element.
ic-trigger-from
has no effect on dependencies.
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>