Ionic loop $scope.variablename with number auto increment and value auto increment

hello all

am very new in ionic, here I get the problem,

so my problem is, I have a hidden input type that is repeated and each ng-ng model should be different from other models eg:

and so on that will be in parsing again to the database,

the problem I was making $ scope.roll_ $ number / variable loop in the controller and in viewnya,

can you help me, please …


Can you explain what you exactly do and send your code here, so i will checked and try to solved.

ok, but sorry you can clone on my github, at


Ok i will get code and check it



Your Api is local,so it can not work properly.
can you explain which view (html) page i would refer to correct the issue.


hello @vd_virani in here i found solution for my problem but nothing fix

look at this @vd_virani

and my api is


my api on at my repository,

Look at my repo and so clone adhityawayan/sekolahan

Thanks very much for response.

hello vd_virani you can see at my plunkr

this plunk am found solution but not fix at data showing,

i have five row data, but data show is one

regard vd virani

@HappyHappyJoyJoy can help me please , sorry,

maybe you can help fix to my problem…

thanks @HappyHappyJoyJoy


 <div ng-repeat="jurnaldetail in jurnalDetail">
      <input type="text" name="id" ng-model="jurnaldetail['id' + $index]">
       <input type="text" name="user" ng-model="jurnaldetail['user' + $index]">
     <input type="text" name="class_id" ng-model="jurnaldetail['class_id' + $index]">

Here , you will change your <input type="hidden">

          user0 :'aaa',
          user1 :'bbb',
          user2 :'cc',

This is just a sample code from my side, if you find it useful then please mark it as a solution and you can also give like by clicking heart button.


emm… ok but at jurnal modul is fix,

this my problem at absen modul