i have this routing code on my app:
var app = angular.module('docFinder', [])
app.config(function($routeProvider){
$routeProvider.
when('/',
{
controller: docTable,
templateUrl: 'partials/finder.html'
}).
when('bio/:finderId',
{
controller: bioCtrl,
templateUrl: 'partials/bio.html'
}).
otherwise({redirectTo: '/'});
});
when i start my app and go to root y click on a link to the second route
once i get there i hit the back button on my browser and it dosn't goes back it only refreshes my current page, any ideas on the problem?
EDIT:
Solution
<tr ng-repeat="doc in providers" ng-mouseover="mouseOverDoc(doc)" ng-mouseleave="mouseLeave()">
<td><a href="#bio/{{doc.provider.Id}}"> {{doc.provider.FirstName}} </a></td>
</tr>
/and/:finderId(finderId being null). Did you try with a route such as/bio/:finderId, just to make sure AngularJS doesn't get confused with the routes?