Skip to content

Instantly share code, notes, and snippets.

@jorgeguberte
Created March 18, 2014 01:49
Show Gist options
  • Save jorgeguberte/9612085 to your computer and use it in GitHub Desktop.
Save jorgeguberte/9612085 to your computer and use it in GitHub Desktop.
DataConnector
->acquire() //pega um json
View
->injectData() // Injeta os dados na view, ou seja: monta os DOMs todos.
-> render() // Mostra a view de fato
//Fluxo
DataConnector->acquire()->then(View.injectData()).then(View.render())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment