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.
The text was updated successfully, but these errors were encountered:
We are unable to convert the task to an issue at this time. Please try again.
The issue was successfully created but we are unable to update the comment at this time.
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
For now, we have only
NbLayoutDirectionServicewhich 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 useasyncpipe, for example.Expected behavior:
I want to suggest building two directives:
nbIfRtlandnbIfLtr. Both this directives have to support 'else' syntax likengIf.This directive will help us create cleaner code without manually subscriptions management in each component which uses
ChangeDetectionStrategy.OnPushandNbLayoutDirectionService.The text was updated successfully, but these errors were encountered: