I'm having trouble extracting the values of "from" and "to" from an ION-Range-Slider in an AngularJS Controller, resulting in a syntax error.
Here is the code for my Slider:
<div class="slider-box">
<h5>Distance</h5>
<ion-slider type="double"
grid="true"
min="0"
max="800"
step="50"
from="{{ distance.from }}"
to="{{ distance.to }}"
postfix="Meters"
disable="false">
</ion-slider>
</div>
from="{{ distance.from }}" <!-- Syntax ERROR -->
to="{{ distance.to }}" <!-- Syntax ERROR -->
In my controller, I attempted the following:
$scope.distance = {
from: 0,
to: 400,
};
Thank you for your attention :)