Skip to content

Instantly share code, notes, and snippets.

@mockra mockra/comment.js

Created Oct 28, 2014
What would you like to do?
import Ember from 'ember';
export default Ember.ObjectController.extend({
actions: {
create: function(post) {
var self = this;
var comment ='comment', {
post: post,
content: this.get('content')
}); {
self.transitionToRoute('', comment);
}).catch( function(reason) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.