-1
Hello, my application is in Angularjs and I’m also using materialize. I would like to create a range but next to it put an input that when I type the data the range changes with the value of the data I typed.
<div class="col s12 m10 l11" id="ramMemory-range">
<div class="range-field ">
<label>
<span class="left">1GB</span><span class="right">64GB</span>
<input type="range" name="ramMemory" id="ramMemory" min="1" max="64" class="validate" data-
error="#ramMemory-range" ng-model="server.ramMemory" required/>
</label>
</div>
<input type="text" name="valorRange">
</div>
and what is the difficulty/doubt/problem?
– Ricardo Pontual
I just wish I knew how I would do it... I have no idea... I’m a beginner. Pdeira put an example?
– daniel melgary
creates a model value for input, then creates a Function that will be triggered for example with
ng-change
input, which takes the input value and arrow in the range model– Ricardo Pontual
Can the input ng-model match the range? While I can change the range manually, I can change it in the input, which means it will receive the input value. After that I have save by sending so to the api and the bank
– daniel melgary