How can i go to another page using angularjs

i am trying to pass data from one page in url and get in new page from the url, for example i want to add 10,20 in the url. like in the given example i pass 10,20 in sumurl it shows its sum in div ng-view but i want to show it in sumurl.html or input.html

var app=angular.module('myapp',['ngRoute']);
    app.config(['$routeProvider',function($routeProvider){
        
        $routeProvider
            .when('/sumurl/:a/:b',{
            templateUrl:'sumurl.html',
            controller:'sumurl'
        })
            .when('/input',{
            templateUrl:'input.html',
            controller:'input'
        })
            .when('/',{
            template:'Welcome to my app'
        }).otherwise({
            template:'Not Available'
        })
    }]);
    
    app.controller('sumurl',['$scope','$routeParams',function($scope,$routeParams){
        $scope.n1=$routeParams.a;
        $scope.n2=$routeParams.b;
        
    }]);
    
    app.controller('input',['$scope','$location','$interpolate',function($scope,$location,$interpolate){
        $scope.n1=0;
        $scope.n2=0;
        
        $scope.dosum=function(){
            var url=$interpolate('/sumurl/{{n1}}/{{n2}}')($scope);
                //console.log(url);
            $location.path(url);
        }
    }]);
<script src=""></script>
<div ng-app="myapp">
<ul>
<li><a href="">some url</a></li>
<li><a href="">input</a></li>
<li></li>
</ul>
    <div ng-view>
    
    </div>
    
</div>


ANSWERS:


Inject the $location service, and then you can just do $location.href = <your target URL>



 MORE:


 ? How auto prepend post's category to url?
 ? how to redirect to two url from jsp page
 ? create url for file in my file system , web service
 ? Symfony host restriction
 ? Laravel - How to set fallback url. If a url does not exist, redirect to some default page
 ? Handling GET request variables
 ? How to load classes based on pretty URLs in MVC-like page?
 ? Using ASP.NET routing to serve static files
 ? ASP.NET MVC custom routing for search
 ? ASP.NET MVC Url Route supporting (dot)