angularJS路由跳转

html

<a class="signup" ng-click="jumpToUrl('login')">登录</a>

js

.controller('MapCtrl', function($location){
     $scope.jumpToUrl = function(path) {
            $location.path(path);
        };
}
原文地址:https://www.cnblogs.com/TTonly/p/10349955.html