enyo.Model example is not working in 2.5.1-pre.4

Hi,
I have some problem in enyo.Model example.

http://enyojs.com/docs/latest/building-apps/managing-data/building-data-driven-apps.html


enyo.kind({
name: "ContactModel",
kind: "enyo.Model",
url: "http://myservice.com/users",
primaryKey: "user_id"
});

var myModel = new ContactModel({user_id: 1234});
myModel.fetch(); // Results in an XHR request to http://myservice.com/users/1234


* Error message:
enyo.Source.execute(): no source(s) provided for ContactModel.fetch()

I checked by web browser, but server is ok.
I think I need code for enyo.Source but I couldn't find any example.
Please help me.
Thanks

Comments

Sign In or Register to comment.