Created
December 18, 2014 22:07
-
-
Save devdays/d76c959539145b73d3e4 to your computer and use it in GitHub Desktop.
Single Page App - Sammy Post Verb
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
this.post('#/compose', function(context) { | |
context.app.swap(''); | |
var to = this.params['to']; | |
context.$element().append('<h1>hi ' + to + '</h1>'); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment