This seems to be a very common problem.
Currently I have a login form and few pages on my front end and a back end.
My single route file looks like this -
Front End
/login
/about
Back End
/dashboard
/manageuser
/settings
Now the problem which I am facing for the management is currently -
Scenario -
I have lot of scripts for the front end in both head
section and the bottom just before the body
closing tag.(as I am using maps, charts, reports etc in dashboard and other administration section menu items)
Scripts are changing on page basis, ie different scripts for login page, settings, dashboard page etc in both head section and just before the body tag.
Also the body tag contains different classes on page basis like body class="login form"
, body class="dashboard registered user form-control"
etc
Problem -
Now you can see that there is too much randomness in the layout, so how do I manage this thing with a single layout file ? I want to keep my routes clean like the above mentioned. How could I achieve this as most of the thing I came across my search, deals with single layout.
FYI - Currently I have only two pages on my front end, so major thing is the dashboard(administration panel) but there too scripts are changing as per the section.
I too looked at UI-router
but unable to fit this in my scenario, let me know about the layout management thing in angular as I believe this is a very common use case while developing a web app.
EDIT -
I am using LinemanJS
for front end(just an info if that matters any how).