Created
January 21, 2015 10:59
-
-
Save gtyanchev/a5dfc337fa72c5cca587 to your computer and use it in GitHub Desktop.
pyramid_of_doom_destroyed
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
Users.login(username, password) | |
.then(function () { | |
return usersModel.load(); | |
}) | |
.then(function () { | |
mobileApp.navigate('views/notesView.html'); | |
}) | |
.then(function() { | |
alert("You've logged in!"); | |
}) | |
.catch(function (err) { | |
showError(err.message); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment