ic-enhance
- The Enhance AttributeThe ic-enhance
attribute tells intercooler to enhance all anchor tags (links) and form tags
found below the attribute, causing them to issue AJAX requests rather than their standard behavior.
For anchor tags this means that the href
is copied over to ic-src
, the
ic-push-url
attribute is set to true
, and the ic-deps
attribute
is set to ignore
so no dependent requests are generated for it.
Only local references will be enhanced. Anchor tags that point to other sites, or that reference fragment ids will not be modified.
For form tags this means that the action
is copied over to ic-src
, the
ic-verb
attribute is set to method
attribute, and the ic-deps
attribute
is set to false
so no dependent requests are generated for it.
In both cases, intercooler attributes can be overridden or added directly to the element if you so wish.
The value of the attribute should be true
or false
.
ic-enhance
has no effect on dependencies.
<div ic-enhance="true"> <h3>Here is an enhanced link</h3> <a href="/ic-enhance">A Link</a> </div>