I have the following code which routes some of my URLs:
.when('/patient/:patient', {
templateUrl: 'views/patient.html',
controller: 'DashboardCtrl',
controllerAs: 'dashboard'
})
I am looking to access the :patient information from the scope. What is the most direct method to access that information from the scope?
In other words, how do I know which patient the URL is at?