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

前端 未结 5 693
天命终不由人
天命终不由人 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:19

    I had the exact same problem, and what seemed to solve it was removing a class of "ng-view" that I had on one of my divs. It's like it was causing a conflict.

    I had:

    ...

    Then changed to:

    ...

    I'm guessing ng-view is a reserved word, but I didn't think it would be affected when used as a class.

提交回复
热议问题