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
Hi, how to pass some params to my method? Something like this:
timers: { foo: {time: 1000, params: {msg: 'my msg!'}} }, methods: { foo(msg = null) { if (msg) console.log(msg) else console.log('default msg') } }
The text was updated successfully, but these errors were encountered:
why did you set params in timers, you can set in the methods with vue data
{ timers: { foo: {time: 1000} }, data() { return { msg: 'my msg!' } }, methods: { foo() { if (this.msg) console.log(this.msg) else console.log('default msg') } } }
Sorry, something went wrong.
No branches or pull requests
Hi, how to pass some params to my method?
Something like this:
timers: {
foo: {time: 1000, params: {msg: 'my msg!'}}
},
methods: {
foo(msg = null) {
if (msg) console.log(msg)
else console.log('default msg')
}
}
The text was updated successfully, but these errors were encountered: