Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Content is not showing Up  #209

@arunwebber

Description

@arunwebber

I have created the ng-sidebar as a component which i dont need in diffrent places the component code is shown here. This is component

<ng-sidebar-container>
  <!-- sidebar -->
  <ng-sidebar [opened] = "opened">
    <button (click) = "toggleSidebar()">
      x
    </button>
    <ul class = "menu">
      <li>
        <span (click)="logout()">Logout</span>
      </li>
    </ul>

  </ng-sidebar>

  <div ng-sidebar-content>
    <!-- Page Content -->
    <button (click) = "toggleSidebar()">
      Open sidebar
    </button>

  </div>
</ng-sidebar-container>

And in component.ts

  toggleSidebar(){
    this.opened = !this.opened;
  }

And i want to use this component to some other component Like this way

<app-header></app-header>

<app-logout>
  {{ home|json }}
</app-logout>




<app-footer></app-footer>

Everything is Working fine but the json content is not showing up. I am not sure where i am going wrong. I dont want to use this in app.component.ts page becose i dont want to show this side bar in diffrent pages that is the reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions