I used the $location.url() method to obtain my current URL.
$location.url() returns '/details'
Now, I am looking to append some parameters, such as
'/details/student'
How can I add '/students' to my current URL upon a click event? Any suggestions or help would be greatly appreciated. Thank you.
<tabset>
<tab heading="student" ng-click = "changeRoutes('student')">
<h4>STUDENTS</h4>
<p>Best students..</p>
</tab>
<tab heading="teacher" ng-click = "changeRoutes('teacher')">
<h4>TEACHERS</h4>
<p>Best teachers..</p>
</tab>