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 …

Hi
@dwielisya

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

Hi,
@dwielisya

Ok i will get code and check it

Thanks

Hi,
@dwielisya

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

Thanks

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

look at this @vd_virani https://plnkr.co/edit/jS7lTzI2Cu7DKOYM1cxJ?p=catalogue

and my api is https://github.com/adhityawayan/sekolahan

regards

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

Hi,
@dwielisya

 <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]">
 </div>

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

 $scope.jurnalDetail=[
        {
          id0:'111',
          user0 :'aaa',
          class_id0:'11'
        },
        {
          id1:'222',
          user1 :'bbb',
          class_id1:'22'
        },
        {
          id2:'333',
          user2 :'cc',
          class_id2:'33'
        }];

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.

Thanks,

emm… ok but at jurnal modul is fix,

this my problem at absen modul