jquery layout not working while loading through ui-view

前端 未结 4 1217
-上瘾入骨i
-上瘾入骨i 2021-01-27 15:08

I have created a layout using JQuery layout. It is working fine if I use it in normal index file. But when I try to load through ui-view directory, it\'s not loading. Please hel

4条回答
  •  死守一世寂寞
    2021-01-27 15:58

    The issue is that .layout is called before the element #container exists.

    The correct solution for this would be to create a directive for the 'layout' function and apply that directive to the element you want to set the layout to.

提交回复
热议问题