I use Backbone.js
I'm trying to get my data from server but it doesn't work
var Message = Backbone.Model.extend({});
var MessageStore = Backbone.Collection.extend({
model: Message,
url: myUrl
});
var messages = new MessageStore();
messages.fetch()
console.log(messages)
(server send json object)
I searched but no response
what's incorrect in my code?