[HTMLBars] Bind more controller properties to one attribute


#1

Hi,

is this correct or is there any other solution?

<input disabled={{model.isnValid}} disabled={{isSaving}}>

I know that I can create new CP and depend on model.isnValid and isSaving, but I want to know if there is any other solutions.

Thank you for advices


#2

Not that I know of. is there some reason that you don’t want to use a computed property?


#3

No, I used CP, but I wanted to know about other possibilities.

I found https://www.npmjs.com/package/ember-truth-helpers but CPs are much better in this situation.