Fetch Data using the Cycle.js HTTP Driver

Share this video with your friends

Send Tweet

Let's see next how to use the HTTP driver to generate requests and capture responses. We will build a small app to fetch a single piece of data from a REST server and display that on the DOM.

Markus Hubig
Markus Hubig
~ 7 years ago

Why are you adding an $-sign at the end of you variables (like e.g.: request$ = ...)?

Jean-Denis Vauguet
Jean-Denis Vauguet
~ 7 years ago

$ is purely conventional and means "stream" in that context: number$ aka. "number stream" aka. "a stream of numbers".