Ember Uncaught TypeError: Unable to read the 'yield' property from undefined

We get an Uncaught TypeError error: Cannot read the 'yield' property from undefined for the following hbs code;

<button {{if isButtonEnabled 'enabled' 'disabled'}}>Test</button> 

isButtonEnabled is a property defined on my respective controller

+7
javascript
source share
1 answer

You will have to flip your fortune and do it. I just had this exact problem, and it was a solution.

 <button disabled={{isButtonDisabled}}>Test<button> 
+11
source share

All Articles