I have a project for which I need 2 layouts. One which is basically 1 column (kind of as a landing page) and one which has a menu at the top, and is basically the same 1 column layout.
I've set up 2 layout HTMLs, which I'm using in my states, but the problem is that every time I switch from one state to the other, the whole HTML in the top-most
ui-view (the one in the body) is changed.
Here's my setup:
The problem is that when switching between
my-navbar gets removed and then re-appended, which the user can briefly see (until the new HTML loads). I'd understand if one of the states would have the
logged-out.html layout and the other the
logged-in.html layout, but we're talking about the same file, and I'm looking to update only the
ui-view from inside