Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am trying to understand how to structure parts of my angular.js app when using angular-ui-router. I have followed this article and created a demo app.

My app has a home page with a top navbar. and a view (say view1) which has a left vertical navbar. and a right pane in which I'll show the details of the item selected in the left navbar.

Currently I have put the top navbar in a template and loading it using ng-include in header tag. After that I have a ui-view.

What I need to know is, am I doing it correctly? I have Googled a lot and tried to understand the functionalities of ui-router and its ui-views. But just need to be sure if I'm following the standard way.

There's not any specific piece of code that I could show so not posting any. Please provide some information on the same or if any resources that explain these concepts in detail.

share|improve this question
    
John Papa's style guide – Callum Linington Jun 26 '15 at 14:18
up vote 2 down vote accepted

I assumed you had already done some research on ui-router. So I just recommend one tutorial that I found that it was useful for me when I war trying to learn ui-route. https://egghead.io/lessons/angularjs-introduction-ui-router The website has a lot of nice tutorial for angular, enjoy.

share|improve this answer
    
Wow! That video really helped. It's clear in my head now... Thanks – Салман Jun 26 '15 at 13:03
    
I am happy you found that useful, you are welcome! – Shaohao Lin Jun 26 '15 at 13:05
    
Here's another more in depth video: youtube.com/watch?v=dqJRoh8MnBo. Worth watching when you have an hour. – jme11 Jun 28 '15 at 2:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.