FetchController

A FetchController fetches data from a URL and stores it in its data property.

OptionTypeDefaultValueDescription
inputobjectOptional The controller's initial state.input value.
converterfunction(input) => outputOptional - A function that accepts the input and returns the value of output.
PropertyTypeDescription
inputstringThe props to convert.
outputanyThe controller's converted input props.
converterfunctionGet or set a function that accepts the input and returns the value of output.
MethodDescription
animate()Animate the controller's input (and convert it to output).
setInput(props, initial)Set the controller's input state. If initial is true, this method will only fire once.

Example: