We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
is it possible to have methods on a model ?
I thought also it might be useful to add binding such that if the return type is a function - then it is called before being used.
so we could have :
model : { first: 'John', second: 'Smith', fullName: function() { return this.first() + ' ' + this.second() } }
does this fit into the framework ?
The text was updated successfully, but these errors were encountered:
Sometimes it is uesful to just get the function and not the result of the function, for example for some sort of state machine.
But you can explicity call the funtion like this: someObject.model.get('fullName')();
Sorry, something went wrong.
No branches or pull requests
is it possible to have methods on a model ?
I thought also it might be useful to add binding such that if the return type is a function - then it is called before being used.
so we could have :
does this fit into the framework ?
The text was updated successfully, but these errors were encountered: