I got my current url with this
$location.url() which it '/details
This time i want to add some params to it like
'/details/student'
How can i add '/students' to my current url on click,can any one suggest help please.Thanks.
<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>
hreforui-srefattribute on the element that is clicked to navigate to the new url/studentis added to the url? Do you want to navigate to that location?$window.location.href = '/details/students'- in any case, it would very likely be better to use one of the angular-provided routing options with things that have anything to do with urls