1

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.

1

1 Answer 1

2

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.

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

2 Comments

Wow! That video really helped. It's clear in my head now... Thanks
Here's another more in depth video: youtube.com/watch?v=dqJRoh8MnBo. Worth watching when you have an hour.

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.