Please check the below code.

<form class="form-horizontal" id="blogForm" ng-submit="pushData(frm)" 
hidden>
        
        <div class="form-group col-sm-6" >
             <table class="table table-striped">
                    <tr>
                        <th class="col-sm-3">Tank</th>
                        <th class="col-sm-3">Opening Stock</th>
                        <th class="col-sm-3">Receipts</th>
                        <th class="col-sm-3">Dip Reading(Quantity)</th>
                    </tr>
                    
                    <tr ng-repeat="a in tanklist">
                        <td class="col-sm-3" >
                            {{ a.tank }}
                        </td>     
                        <td class="col-sm-3">
                            <input type="text" ng-model="frm.ops[$index]" 
class="form-control" />
                        </td>
                        <td class="col-sm-3">
                            <input type="text" ng-model="frm.r[$index]" 
class="form-control" />
                        </td>
                        <td class="col-sm-3">
                            <input type="text" ng-model="frm.dr[$index]" 
class="form-control" />  
                        </td>    
                        <br>
                    </tr>
            </table>  
        </div>  
        
        <div class="form-group col-sm-6" >
             
        </div>
        
        <div class="form-group">
            <div class="col-sm-8 col-sm-offset-2">
                <button type="submit" value="submit" class="btn 
btn-primary" onclick="">Create</button>
                <button type="reset" value="Cancel" class="btn btn-danger" 
ng-click="frm = {};frmToggle();">Cancel</button>
            </div>
        </div>
            
    </form>

<!--controller method-->
$scope.pushData = function($params) {
        
       console.log('HI');
       
       console.log('saa ops:'+$params.ops[0]);
}

<!--In console output-->
HI
Error: $params is undefined

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to