Issue with jqLiteAcceptsData(node) (not repeatable)

I’ve had an odd issue here, and I’m not sure if it’s something I’ve done, or whether I’ve just hit a fringe case, but re-testing it for this post it seems to have fixed itself…

I had an issue where my controller defined a flag, and then in the view an ng-if=“flag” worked fine, but the inverse, ng-if="!flag" failed with an error that I traced to jqLiteAcceptsData(node) in ionic.bundle.js.

For some reason, the parameter was coming in as null which was causing an exception.

I fixed it with : if(!node) { return false; } but now it seems to have resolved itself as I can acomment that line out and all is OK.

Just weird…