Here is what I currently have:
<span>{{ $root.page_header || "default" }}</span>
However, I want it to default to default unless the current $state
is a specific value.
For example, if my states are: home, settings, & profile, then I want $root.page_header
to be default as long as the $state is not home. If it is home, then my controller will define what $rootScope.page_header
should be.
I believe I need to first determine the $state name and then incorporate it into my {{ }}
somehow.
Any suggestions on how to achieve this?