Everytime the user toggles to a new page, the sidebar defaults back to its open state.
Lets create a field in our user data model as something like sidebarOpen and save it as a boolean. This way, when the user loads a new page, we can pass that value through the handlebar template to determine if we should add the classes for the sidebar to be open or closed.
Everytime the user toggles to a new page, the sidebar defaults back to its open state.
Lets create a field in our user data model as something like
sidebarOpen
and save it as a boolean. This way, when the user loads a new page, we can pass that value through the handlebar template to determine if we should add the classes for the sidebar to be open or closed.