ekokotov / object-table

Angular directive to easy create dynamic tables from source or URL with sorting, filtering and pagination. Smart templates and good perfomance
BSD 3-Clause "New" or "Revised" License
171 stars 52 forks source link

ng-click invalid ? #37

Closed liaohui1080 closed 8 years ago

liaohui1080 commented 8 years ago

`{{$index}}{{::item.name}}

{{::item.age}}
            <td >
            {{::item.money}}
            </td>
            <td>  <button ng-click="dianji()">fsdf</button></td>`

Can not run normally??

liaohui1080 commented 8 years ago

sorry 我自己找到了 $owner.dianji()

ekokotov commented 8 years ago

is dianji() is controller method of view ? try use controller as vm for your controller and vm.dianji() in your template.