arkon / ng-sidebar

[Inactive] Angular sidebar component.
https://echeung.me/ng-sidebar
MIT License
388 stars 136 forks source link

Angular V6 - Page not loading at all #161

Closed jamshed-qureshi-mobinext closed 5 years ago

jamshed-qureshi-mobinext commented 6 years ago

I'm having the same issue as #100 and I've also applied ''. Also I've applied "position:static;" property. My page gets loaded in the browser but it doesn't render at all.

Point to mention here is that I'm using the ng-sidebar-container directive in a nested module's component, however I've also imported the SidebarModule in the nested module's import array. Is the problem because I've used SidebarModule.forRoot() in the nested module or is it something else.

This page's component is not app.component instead it's in a routed component.

jamshed-qureshi-mobinext commented 6 years ago

I've applied height:100vh property to ng-sidebar-container but that didn't help.

arkon commented 6 years ago

Is there actually an error or is the content not just displaying?

jamshed-qureshi-mobinext commented 6 years ago

There is no error, but the page content is not getting displayed at all. I gave height:100vh; to all the parent directives(i.e router-outlet) of the route as well but it didn't help much. I think the problem lies in using SidebarModule in the nested module. Correct me if I'm wrong.

arkon commented 6 years ago

If you inspect the page, is the content actually in the container component?

arkon commented 6 years ago

You can dropping the forRoot() part too if you think that's the issue. I don't have much experience with nested modules though.

jamshed-qureshi-mobinext commented 6 years ago

I dropped the forRoot() part, still it didn't help either.

arkon commented 6 years ago

Did you check if the components/content actually exist in the DOM?