I have a sidebar in spa with functions and I need to get the current page that the function called from. any solution with angularjs? maybe routing?
You can use the angular $location service for this purpose.
$location.path()
, $location.absUrl()
or $location.url()
will satisfy you requirement.