What is '$data' in ngtable's HTML page

前端 未结 1 934
攒了一身酷
攒了一身酷 2021-01-17 11:37

I am using ngtable and at this place in HTML while displaying table


I do not understand the use of $d

1条回答
  •  -上瘾入骨i
    2021-01-17 12:24

    ng-table maintains it's own scope, and $data is the data which exists in this scope, rather than your full data set, which is on the scope of the page controller. It is the property that is populated by the getData() function call in the ngTableParams() object.

    This usage and syntax is deprecated, and has been replaced entirely in the current ng-table source, which is now written in TypeScript as of v2.0.0.

    0 讨论(0)
提交回复
热议问题