I'm experiencing an issue where any angular statement placed in the second panel of the igSplitter is throwing an error:
"Cannot set property 'nodeValue' of undefined"
I've attached an example of this behaviour, is there a workaround?
Hi Michael Kwan,
And thank you for posting in our forum!
I'm not very familiar with Angular.js processes and life-cycle, but it seems that some element is missing and we've tried to manipulate it. Because the sample is too simple and we have only Angular.js initialization and creation of splitter, we can try to reorder both actions. Indeed, creating the splitter in a script block at the end of the HTML document, resolve the issue and I believe the desired result is achieved.
Please, let me know if this helps you!
Hi Petko, thanks for your reply,
I actually managed to work around the issue by wrapping a function to create the splitter in a document ready:
angular.element(document).ready(function () { $scope.createSplitter(); });
$scope.createSplitter = function () { $("#splitter").igSplitter({ height: "750px", panels: [{ size: 800, min: 200}] }); }