-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split pane combined condition for screens size and boolean #10949
Comments
Hello @basvdijk thanks for opening an issue with us , what value does your |
@jgw96 Yes it is a boolean |
Great it is fixed but what will be the correct syntax? Will it be:
|
Hi @basvdijk, I have the same issue which syntax do you use to combine boolean and screen size ? |
@elbidone |
thanks @basvdijk |
@basvdijk this isn't working for me when used together. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[X] 2.x
I'm submitting a ... (check one with "x")
[ ] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I have an observable in my
accountService
calledisAuthenticated$
. The sidemenu contains options only available when the user is logged in.Currently it is only possible to add a boolean on the when:
<ion-split-pane [when]="account.isAuthenticated$ | async">
However this results in showing the sidemenu even when the user is on a small screen.
<ion-split-pane when="lg">
Also works but then I miss the authenticated check.
Expected behavior:
A combination of screen size and using a boolean value
The text was updated successfully, but these errors were encountered: