0
   $scope.JobData = [];    
$scope.SaveData = function (MyData) {
    debugger;
    var _data = [];
    _data = {
        fname: MyData.fname,
        mname: MyData.Mname,
    }
    $scope.JobData.push(_data).toString();
}

This is my Table

<table class="">
            <thead>
                <tr>
                    <th>First Name</th>
                    <th>Middle Name</th>
                </tr>
            </thead>
            <tbody>
        <tr ng-repeat="_mydata in JobData">
              <td>{{_mydata.fname}}</td>
             <td>{{_mydata.Mname}}</td>

                </tr>
            </tbody>

Here how can i appemded my data to the table. Here my intension is add bulk upload

1 Answer 1

1

what ever the code you had written is well and good but ur asssign name are not matching with ur table table please see this

   _data = {
            fname: MyData.fname,
            Mname: MyData.Mname,
            Lname: MyData.Lname
        }

now i hope its work

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.