UNPKG

intercooler

Version:

Making AJAX as easy as anchor tags

38 lines (26 loc) 935 B
--- layout: default nav: attributes > ic-verb --- <div class="container"> <div class="row"> <div class="col-md-12"> <h2><code>ic-verb</code> - The Verb Attribute</h2> <h3>Summary</h3> <p>The <code>ic-verb</code> attribute tells Intercooler to use a different HTTP verb when issuing a request than it would otherwise.</p> <p>This can be useful in cases where, for example, you want to reuse a form for both editing and creating new models, and need to select the appropriate verb.</p> <h3>Syntax</h3> <p>The value of the <code>ic-verb</code> attribute should be one of:</p> <ul> <li><code>GET</code></li> <li><code>POST</code></li> <li><code>PUT</code></li> <li><code>DELETE</code></li> </ul> <h3>Dependencies</h3> <p><code>ic-verb</code> attribute has no effect on dependencies.</p> </div> </div> </div>