Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

export with ng-repeat can't get value #83

Open
yekeqiang opened this issue Aug 23, 2017 · 0 comments
Open

export with ng-repeat can't get value #83

yekeqiang opened this issue Aug 23, 2017 · 0 comments

Comments

@yekeqiang
Copy link

yekeqiang commented Aug 23, 2017

@clarketm
i use ng-repeat with tableExport,can't export the real data, get the var。

my import js:

<script type="text/javascript" src="/statics/tableExport/xls.core.min.js"></script>
<script type="text/javascript" src="/statics/tableExport/Blob.js"></script>
<script type="text/javascript" src="/statics/tableExport/FileSaver.js"></script>
<script type="text/javascript" src="/statics/tableExport/js/tableexport.js"></script>

the FileSaver version is: v1.3.6
the tableExport version is :v3.3.10

my code is:

       <table id="physicInfo" class="table table-bordered" datatable="ng">
                    <thead>
                    <tr>
                        <th>Physic</th>
                        <th>vm</th>
                        <th>BU</th>
                        <th>app</th>
                        <th>nodeGroup</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="vm in transferHostMap track by $index" ng-model="transferHostMap" repeat-done="initDataTable()">
                        <td>{{vm.physicHostName}}</td>
                        <td>{{vm.vmHostName}}</td>
                        <td>{{vm.vmBu}}</td>
                        <td>{{vm.vmApp}}</td>
                        <td>{{vm.vmNodeGroup}}</td>
                    </tr>
                    </tbody>
                </table>

my get data:

Physic  vm  BU  app  nodeGroup
{{vm.physicHostName}}  {{vm.vmHostName}}  {{vm.vmBu}}  {{vm.vmApp}}  {{vm.vmNodeGroup}}
{{vm.physicHostName}}  {{vm.vmHostName}}  {{vm.vmBu}}  {{vm.vmApp}}  {{vm.vmNodeGroup}}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant