Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (13 sloc) 619 Bytes
<aura:component >
<!-- Define method to be called by other components -->
<aura:method name="callAjax" action="{!c.callAjax}">
<!-- Method can be, for example, GET or POST -->
<aura:attribute name="method" type="String" default="GET" />
<!-- URL to call -->
<aura:attribute name="url" type="String" />
<!-- Whether the call should be sync or async -->
<aura:attribute name="async" type="Boolean" default="true" />
<!-- Callback method on call complete -->
<aura:attribute name="callbackMethod" type="Object" />