Created
September 21, 2015 19:06
-
-
Save pjazdzewski1990/f72fa69c6da4f3630183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSExport | |
def main(target: html.Div): Unit = { | |
... | |
fetchData().onSuccess { | |
case s => | |
thingsToDo = read[List[Task]](s.responseText) | |
// now you need to refresh the UI | |
} | |
def fetchData() = Ajax.get("https://sizzling-torch-788.firebaseio.com/dummyTask.json") | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment