-
-
Notifications
You must be signed in to change notification settings - Fork 150
Setting attributes hidden attribute manually not working #175
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
Comments
@32x0lf
|
@32x0lf |
@32x0lf in this case you should generate (not mutate) |
Yes, I am using route guards as well but I want to hide it also. What do you mean by not mutate? Is hidden attributes works? |
@32x0lf Data structures in JS like objects and arrays are not immutable, but JS treats them as if they were immutable (they are passed by reference, which is immutable). To trigger change detection, you'll have to pass new array to |
you mean doing it in static way attributes : hidden don't work? because I was doing it in static at first to test the attributes but it was not doing what I expected. |
@32x0lf
|
It didn't work for me setting attributes to hidden: true |
You mean whatever the value of the hidden attribute as long the hidden attribute is there it will be hidden?. I thought the value of hidden should be false or true based on your example. |
@32x0lf as explained here #175 (comment) Valid values:
To remove |
Thank you so much. It works now for both static and dynamic. |
Hi,
I am trying to set the attributes hidden to false or true, but it is always hidden. I noticed, if attributes is hidden it is always hidden whether the value is false or true. Did I miss something?
note: I only set this attribute to this item only and the rest don't have attributes
Please advise and thanks in advance
The text was updated successfully, but these errors were encountered: