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
template(name="hello") a(href="/hello" onClick=onClick) Click me
class Hello extends BlazeComponent @register 'hello' onClick: (event) -> console.log 'Hello!' event.preventDefault()
Refresh the page (no clicks) and in console I can see:
> Hello! > Exception in template helper: TypeError: Cannot read property 'preventDefault' of undefined
The text was updated successfully, but these errors were encountered:
Don't you need to use the event map? I don't think you can bind events like that.
Sorry, something went wrong.
This works only with HTML templates. Jade has not been ported to them. Something like the following has to be done:
https://github.com/peerlibrary/meteor-blaze-components/blob/master/patch-compiling.js
Duplicate of #113.
Yes you can with recent version of Blaze Components.
No branches or pull requests
Refresh the page (no clicks) and in console I can see:
The text was updated successfully, but these errors were encountered: