Open tkoseoglu opened 7 years ago
Assuming normal sidebar behavior, your angular component could implement AfterViewInit
and using an @ViewChild(SemanticSidebarComponent)
you could call .show()
.
import { Component, AfterViewInit } from "@angular/core";
import { SemanticSidebarComponent } from "ng-semantic";
@Component({/* Component data here */})
export class AppComponent
{
@ViewChild(SemanticSidebarComponent)
sidebar: SemanticSidebarComponent;
ngAfterViewInit()
{
this.sidebar.show();
}
}
Hi, If I wanted to show a sidebar by default, what would I need to do? Thanks --tolga