Skip to content

Instantly share code, notes, and snippets.

@BramKaashoek
Last active Sep 21, 2017
Embed
What would you like to do?
//..
self.title = ko.observable();
self.description = ko.observable();
self.startDate = ko.observable(new Date());
self.endDate = ko.observable(new Date());
//...
self.createMeeting = function(){
var meeting = {
_id: '',
title: self.title(),
startDate: self.startDate(),
endDate: self.endDate(),
description: self.description(),
};
var meetingError = function(jqXHR, textStatus, errorThrown){
console.error('Error in Create: ' + textStatus);
};
MeetingsService.create(meeting, null, meetingError);
};
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment