使用Smar Table导出CSV

时间:2017-06-13 22:00:13

标签: angular csv smart-table

有这个错误在我的表st-pipe中为服务器端和st-table使用智能表和我的指令。

我的表

<table st-pipe="callServer"  st-table="displayedClients" class="table" st-filtered-collection="displayedClients">
                .....
</table>

我的指示

app.directive('stFilteredCollection', function () {
        return {

            restrict: 'A',
            require: '^stTable',
            scope: {
                stFilteredCollection: '='
            },
            controller: 'stTableController',
            link: function (scope, element, attr, ctrl) {
                console.log(scope.stFilteredCollection);
                scope.$watch(function () {
                    return ctrl.getFilteredCollection();
                }, function (newValue, oldValue) {
                    scope.stFilteredCollection = ctrl.getFilteredCollection();
                });
            }
        };
    });

我的错误

angular.js:14525 Error: [$compile:multidir] Multiple directives 
[stFilteredCollection (module: myapp), stPipe] asking for new/isolated 
scope on: <table st-pipe="callServer" st-table="displayedClients" 
class="table" st-filtered-collection="displayedClients">

0 个答案:

没有答案