Say you have a website that has 3 different routes, /news, /about, and /signup.
News and about are their own "pages", while signup is just an overlay that can be toggled on either /news or /about.
If you visit /signup on /news or /about, the corresponding page would still be visible underneath the signup overlay. If you go straight to /signup, it would show the site's root (/news for the sake of clarity) underneath.
Is this possible? Is it possible to, using AngularJS and ui-router (or angular-router?), have multiple views and various routes that change one view while leaving another unchanged.
I've taken a look at this link: angularjs ui-router - how to build master state which is global across app
But it seems that all it does is define a default value for a ui-view in the case none is declared in the current route.
The setup is pretty basic:
<div class="main" ui-view="main"></div> <div class="overlay" ui-view="overlay"></div> And I want to activate the overlay view, via url, without changing what's displayed in main.