-
Notifications
You must be signed in to change notification settings - Fork 200
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
Computed properties #237
Comments
There are a couple of issues with your example.
I'd recommend reading through the documentation or refactoring further, but I'll keep this open until I fix and document computed properties. |
With the last few commits, I refactored how data is created in components. Computed properties now work like this: Moon({
first: "John",
last: "Doe",
get full() {
return this.first + this.last;
}
}); It should be releasing soon with Moon v1 beta 3. |
Hello @kbrsh The new syntax seems nice, looking forward for it Regards |
Hello.
I'm trying to make computed properties work, but it is being an imposible task. Every time I try to access a computed property I get a different error. If I try to iterate a computed properties I get an error related to length of undefined, if I just try to sow the property I get an weird error about an unexpected token
)
:The text was updated successfully, but these errors were encountered: