Main content
Component designed to add collapsible side content.
The sidebar remembers whether it was open and the width it was closed at, and restores the state after a page reload. On by default — use [useStateSaving]="false" to turn it off on a specific component.
Nothing is persisted while opened is bound — a binding there means the application decides. A sidebar that should remember its own state is left uncontrolled and toggled through toggle() or the [ / ] shortcut.
clearSavedState() removes what is stored.
Keys, storage and expiry work the same for every component that persists — see Saving component state.
Key | Action |
|---|---|
| [ | Open/close left Sidebar |
| ] | Open/close right Sidebar |