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-view
s. 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
Post a Comment