For example I have an array: var arr = ['a', 'b'] and want to get only first element in template
Use {{arr.[0]}}
. And this is now at least 30 characters.
https://github.com/meteor/meteor/blob/devel/packages/spacebars/README.md#identifiers-and-paths
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With