Hey guys,
I am having trouble with my ng-view in my index file and I could really need som explenation to some questions regarding ng-view and including controllers.
I have an index.html file with a fixed sidebar.
1. As far as I have understood I need to include <ng-view></ng-view> in my index.html file? And I have done so right after the mark-up for the fixed sidebar. Is this correct?
<html ng-app="myApp>
...
<body>
mark up for sidebar...
<ng-view></ng-view>
2. I have a 'Session' controller that handles login and logout andI have a login / logout button in my sidebar but if I use ng-controller in a div element in my sidebar I just get LoginController is undefined.
- Do I have to some manual routing if I try to include this controller here?
I guess this problem comes from me not fully understanding ng-view and how to include controllers in a index file in the markup using ng-controller so nice explenations regarding this would be very highly appreciated!
Thanks! :)