What is the best way to remember the property value of a controller? Take a look here:
I want to remember if an element was expanded, but only during the current session, I don't want to save this value into the datastore. The problem is, doing the following steps:
- Expand "Artist"
- Expand "Album"
- Collapse "Artist"
- Expand again "Artist"
"Album" is also collapsed! The value isExpanded
from the "Album" was lost, seems that ember recreates the controller every time. Which would we a good solution to remember the value of isExpanded
?