Hi all,
Anyone have a best practice or a recommendation for updating the css of views as a user navigates though an app.
Example, I have a list of items. User selects an item and clicks an edit button. The item's edit page slides in from the side.
At the moment I am using a service that has the css for each of the view states.... when the list is full width, when the list is collapsed and the edit page takes up 1/3 of the page, etc.
What I don't like about this approach is that I call functions on the service that set the value of a variable that gets references within ng-class on the various pages. I'm sure other have had to solve this kinds of scenario and am looking to some suggestions.
I've thought about using service that listens to ui-router's state change or view load events to trigger a search of the dom and change the CSS that way. Or maybe there is a ui-router feature that can help with this?
Thanks!
Luis