akveo / akveo/nebular

NbSidebarComponent good to have ability to get state dynamically

Aberta
#2,731 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement P4: nice to have
Linguagem predominante
TypeScript
Estrelas
8.1k
Forks
1.5k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [X] feature request

### Issue description

**Current behavior:**
Current implementation of `NbSidebarComponent` and `NbSidebarService` expect receiving state of sidebar via `getSidebarState` and `getSidebarResponsiveState` once. So to receive updated state consumer have to subscribe again.

**Expected behavior:**
Nice to have an opportunity of dynamically updated state in existing subscription.

**Steps to reproduce:**
Create a component that uses `NbSidebarComponent` and subscribe to `getSidebarState` observable.
Change sidebar state via for example `collapse()` method
Noticed no values received in subscription due to it is completed.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.