wechat-miniprogram / glass-easel

Multiple-backend component-based JavaScript framework
MIT License
243 stars 34 forks source link

The `:` in template event bindings is required or not #138

Closed LastLeaf closed 8 months ago

LastLeaf commented 8 months ago

This should be made clear in documentation.

LastLeaf commented 8 months ago

The legacy bindxxx syntax without : is only valid in these conditions.

LastLeaf commented 8 months ago

It is recommanded that : should ALWAYS be added for event bindings. It makes code clear and results in better compilation results.