2017-10-17 221 views
0

我在Angular 4應用程序中使用AdminLTE。AdminLTE - data-widget =「tree」 - 默認打開菜單

我在左邊的菜單上有鏈接,我用data-widget =「tree」來顯示左邊的菜單。

它看起來像這樣當它打開時:

enter image description here

而像這樣在關閉時:

enter image description here

我想菜單默認情況下,當頁面被打開我找不到這個在documentation

一個解決方案ñ我能想到的是在組件初始化時觸發組件的點擊,但我不知道如何實現這一點,因爲我無法動態生成template reference variables.

回答