akveo / akveo/nebular

RTL support improvement

未关闭
#606 0 条评论 0 个 reaction 已指派 1 人 已被 @yggg 认领 在 GitHub 查看
complexity enhancement good first issue help wanted module:theme P2: important
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

### 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`.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。