javascript - how to structure angular app when using ui-router -


i trying understand how structure parts of angular.js app when using angular-ui-router. have followed this article , created demo app.

my app has home page top navbar. , view (say view1) has left vertical navbar. , right pane in i'll show details of item selected in left navbar.

currently have put top navbar in template , loading using ng-include in header tag. after have ui-view.

what need know is, doing correctly? have googled lot , tried understand functionalities of ui-router , ui-views. need sure if i'm following standard way.

there's not specific piece of code show not posting any. please provide information on same or if resources explain these concepts in detail.

i assumed had done research on ui-router. recommend 1 tutorial found useful me when war trying learn ui-route. https://egghead.io/lessons/angularjs-introduction-ui-router website has lot of nice tutorial angular, enjoy.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -