As you can see from below, I am calculating an expression, {{ annualIncome * 4.5 }}, in one input, and recalculating the same expression in another input, instead of storing the result of the expression and passing it to the other input as I am unsure of how to do that.
Example:
%label Equity Loan ({{ selectedLocation.loan }}%):
%input#equity_loan{ "disabled" => "disabled", "value" => "{{ selectedLocation.mortgage === 55 ? ((annualIncome * 4.5) / 11) * 9 : ((annualIncome * 4.5) / 15) * 4 }}" }
%label Mortgage ({{ selectedLocation.mortgage }}%):
%input#mortgage{ "disabled" => "disabled", "value" => "{{ annualIncome * 4.5 }}" }
I have tried ng-model, but it doesn't seem to work.
Also, I have tried to change the values to a currency by adding "| currency" onto the end of my expression, which also didn't work, but I'm guessing it might be because I need to convert each expression result?