jquery layout not working while loading through ui-view

前端 未结 4 1184
-上瘾入骨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 16:03

    You should try your code after angular DOM is ready

    angular.element(document).ready(function () {
        myLayout = $('#container').layout({west_size:400,
          west_minSize:100
        });
    });
    

提交回复
热议问题