akveo / akveo/nebular

RTL support improvement

Offen
#606 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @yggg Auf GitHub ansehen
complexity enhancement good first issue help wanted module:theme P2: important
Vorherrschende Sprache
TypeScript
Sterne
8.1k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Issue type

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

* [ ] bug report
* [x] feature request

### Issue description

**Current behavior:**
For now, we have only `NbLayoutDirectionService` which provides information about a state of our layout. So, when we using ChangeDetectionStrategy.OnPush in component and wanna use layout service we have to trigger change detection manually or use `async` pipe, for example.

**Expected behavior:**
I want to suggest building two directives: `nbIfRtl` and `nbIfLtr`. Both this directives have to support 'else' syntax like `ngIf`.
This directive will help us create cleaner code without manually subscriptions management in each component which uses `ChangeDetectionStrategy.OnPush` and `NbLayoutDirectionService`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.