UPDATE : The Pull query has been merged, so you can add a class for the value falseas follows:
{{#view App.MyView controllerBinding="this"
classBinding="controller.content.isActive:is-active:is-not-active"}}
{{/view}}
If you do not want to add a class, if a value true, you can use the following syntax:
{{#view App.MyView controllerBinding="this"
classBinding="controller.content.isActive::is-not-active"}}
{{/view}}
I would create a property on the view (for example, you already did with your inverter) and attached to this:
Rudders
{{#view App.MyView controllerBinding="this" classBinding="isNotActive"}}
<div>test</div>
{{/view}}
Javascript
App.MyView = Ember.View.extend({
isNotActive: Ember.Binding.not('controller.content.isActive')
});
Pull Request, , , :
{{#view App.MyView controllerBinding="this"
classBinding="controller.content.isActive:is-active:is-not-active"}}
<div>test</div>
{{/view}}