I am trying to create a function that change to another page depending certain value, I just can't find a way to do it.
Something like this
get the current page www.mypage.com
insert a new route
url = "/reports"
so when the funcion executes the page will redirect to www.mypage.com/reports or anything depending the url
$scope.searchPage = function (url) {
/// page = www.mypage.com + url
};