I was put onto this AngularJS project (I'm usually a python/Java dev) when one of our devs left and it's slowly moving on.
I'm using AngularJS v1.0.8. Yes, I know it's old and I plan and transitioning it over to the newest stable version once I can get a fully working version now.
I'm at this part where the navigations is behaving oddly. I have these two forms with their respectful controllers that should be linked from the index page.
The weird thing is, this code works perfectly fine on the older system which, AFAIK nothing changed in the backend or frontend.
Here's the section of the index.html page that links/loads up the other pages.
<div id="nav" ng-controller="navController" class="wrap">
<div class="container">
<ul>
<li><a ui-sref="form.choose" ui-sref-active="active">Available Courses</a></li>
<li><a ui-sref="form.review" ui-sref-active="active">My Submissions</a></li>
<!-- <li><a href="#">Approve Submissions</a></li> -->
<!-- <li ng-show="session.isAdmin()"><a href="#">Admin</a></li> -->
<li ng-show="session.isAdmin()"><a ui-sref="reports" ui-sref-active="active">Reports</a></li>
</ul>
</div>
</div>
and this is the main directory structure for the views...
└── views
├── form
│ ├── form.choose.tpl.html
│ ├── form.done.tpl.html
│ ├── form.edit.tpl.html
│ ├── form.review.tpl.html
│ ├── form.tpl.html
│ └── rubric.directive.tpl.html
├── home
│ └── home.tpl.html
└── reports
└── reports.tpl.html
What's happening when I try the hyperlink is that it appends an extra /form to the beginning of the link.

So at this point, I'm just trying to figure out where the error is happening.
- Wrong HTML code for 'ref'
- Bad AngularJS routing code
- Bad directory structure