Closed stefek99 closed 9 years ago
Better use a computed property Ember.computed.or
Or alternatively this excellent addon: https://github.com/jmurphyau/ember-truth-helpers
These helpers are not provided "out of the box", without an addon you would need to create a computed property. There are no immediate plans to add utility helpers like or
, but we will be considering it later in the year.
This will be better documented as the Guides for ember are updated around 2.0. I'm closing this as I believe it is actually an issue with Ember's documentation, and unrelated to HTMLBars itself.
OK, thank you for letting me know.
I tried searching:
Found this presentation: http://oscarlodriguez.nl/Labs/htmlbars/#/8
But it doesn't tell me much about the syntax.
My current code:
I want to add class
hidden
whenever submission has been approved or rejected.I would like to know which operators works out of the box, what is the syntax and how to write own helpers as described here: http://stackoverflow.com/questions/8853396/logical-operator-in-a-handlebars-js-if-conditional