Inputfield with JSon data and Jquery

Inputfield with JSon data and Jquery

Hello Guys, im working with angularJS, Jquery and Json files...

Here's my Code, the first  <th>{{item.Nummer}}</th> will Display the correct Value -> 90

Here's my Json file 
  1. { "records":[ {"Nummer":"90","Ranking":"3"} ] }

But if i put the  {{item.Nummer}} in the "rel" in the input field, it will not show up the json data.

does anyone know whjy? and how this can work ? i want that my inputfield gets the data from my json file that it can be generated dynamically
  1. <div class="grid-block wrap align-center" ng-controller="demoController">
  2. <table>
  3. <tr ng-repeat="item in names">
  4. <th>{{item.Nummer}}</th>
  5. <th>{{item.Nummer}}</th>
  6. <div class="small-6 grid-block align-center"><input class="knob"  type="text" data-width="100" data-thickness=".2" rel="22" value="0">
  7. </div>
  8. <div class="small-6 grid-block align-center"><input class="knob" type="text" data-width="100" data-thickness=".2" rel="50" value="0">
  9. </div>
  10. <div class="small-6 grid-block align-center"><input class="knob" type="text" data-width="100"  data-thickness=".2" rel="99" value="0">
  11. </div>
  12. <div class="small-6 grid-block align-center"><input class="knob" type="text" data-width="100"  data-thickness=".2" rel="60" value="0">
  13. </div>
  14. </tr>
  15. </table>

  16. </div>
  17.   <script>


and here^s my JS


  1. $('.knob').each(function(){
  2.     var myColor = 'rgba(41,100,159,.5)';
  3.     var self = $(this);
  4.     
  5.     self.knob({
  6.         'fgColor': myColor,
  7.     });
  8.     
  9.     if(self.val() == 0)
  10.     {
  11.         $({value: 0}).animate({value: parseInt(self.attr("rel"))}, {
  12.             duration: 2000,
  13.             easing:'swing',
  14.             step: function()
  15.             {
  16.                 self.val(Math.ceil(this.value)).trigger('change');
  17.                 self.val(self.val() + '%');
  18.             }
  19.         })
  20.     }
  21. });


  22. </script>