ic-poll - The Poll Attribute

Summary

The ic-poll attribute tells Intercooler to poll the URL given by a ic-src attribute on a given interval.

Syntax

The value of the attribute should a valid integer, followed by the string "s" (for seconds) or "ms" (for milliseconds). (e.g. ic-poll="100ms" indicates that the server should be polled every 100 milliseconds.)

Dependencies

ic-poll has no dependency implications.

Example

Here is a simple example of a poll interval:

  <div ic-src="/seconds" ic-poll="2s">You have been on this page for 0 seconds...</div>
      
You have been on this page for 0 seconds...