Angularjs: TypeError: Cannot call method 'insertBefore' of null

前端 未结 5 597
天命终不由人
天命终不由人 2021-02-05 14:49

Please find the fiddle here http://jsfiddle.net/UxYLa/6/

This is a simplified form of what I am trying to do. There are two directive, and the nested one, subDirec

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-05 15:15

    I had the same issue, but I found I was adding class="md-sticky" on a tag, and it meant to say class="md-no-sticky"

    As soon as I changed this class, that sorted the problem for me, but I also had the same issue with using an ng-repeat not within it's own parent tag, but I had! It was just I used ng-show="condition" on that parent tag, and if that parent tag didn't show it would cause this issue, so I changed it to ng-if="condition" and that sorted that problem.

提交回复
热议问题