1

My be this is very basic, but I am really stuck here, here is my question : I am using angular-ui-router with angular js

This is how my pages are structured (Left:Homepage, Right:Inner Pages (/about-us) ) : enter image description here

Homepage (/)

Header
Content (100% width, one column)
Footer

so I create directives for Header, & Footer, and they will be common through out the site. & I load Content in ui-view, here is how my main template look like

<header-directive></header-directive>
<div ui-view></div>
<footer-directive></footer-directive>

And here are all the other pages strucure e.g (/about-us)

Header
Content Image/Map (100% width)
Content (75% Width)
Sidebar (25% Width)
Footer

So according to the Homepage structure above I need to load Content Image/Map, Content, and Sidebar in the UI-VIEW now, but Sidebar is common too, and that won't change on inner pages.

So the inner pages I only want to load Content Image/Map, and Content. Is there a way to achieve that ?

1 Answer 1

1

There is a very good blog post about UI-Router, http://www.funnyant.com/angularjs-ui-router/. Here the author creates similar example to yours, so I think it might help you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.