Open VilNeo opened 7 years ago
Hello,
I have written an own directive, which contains a ng-table. When following 3 situations come together, i get the error:
"TypeError: Cannot read property 'childNodes' of undefined"
Is this a bug or did I something wrong?
Here is a minified sample code:
HTML:
<div ng-app="myApp"> <div data-ng-repeat="x in ['a','b']" > <ng-table-test>I should change</ng-table-test> </div> </div>
Javascript:
angular.module('ui.directives', []).directive('ngTableTest', [ 'ngTableParams', function(ngTableParams) { return { template: '<table ng-table="tableParams"><thead><tr><th data-ng-if="true">Hu</th></tr></thead></table>', restrict: 'E', scope: {}, "link": function (scope, element, attrs) { var data = [{name: "Moroni", age: 50} /*,*/]; scope.tableParams = new ngTableParams({}, { dataset: data}); } }; }] ); angular.module('myApp', ['ui.directives',"ngTable"]);
Hello,
I have written an own directive, which contains a ng-table. When following 3 situations come together, i get the error:
Is this a bug or did I something wrong?
Here is a minified sample code:
HTML:
Javascript: