Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultValue: broken or not implemented? #75

Open
lastobelus opened this issue Aug 21, 2013 · 2 comments
Open

defaultValue: broken or not implemented? #75

lastobelus opened this issue Aug 21, 2013 · 2 comments

Comments

@lastobelus
Copy link
Contributor

App.Widget = Ep.Model.extend({
  x: Ep.attr('number', { defaultValue: 100 }),
});


var w = App.Widget.create();
w.get('x');
=> undefined

@biscuitvile
Copy link

As far as I can tell this is currently not implemented. I'm interested too. In the meantime you can use the model's didCreate hook to set default values.

@ghempton
Copy link
Contributor

This is currently not implemented. I am planning on supporting partially loaded models soon which conflicts with this a little. Need to think it through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants