angularJS路由跳转

html

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

js

.controller('MapCtrl', function($location){
     $scope.jumpToUrl = function(path) {
            $location.path(path);
        };
}
posted @ 2016-09-12 10:48  TTonlyV5  阅读(213)  评论(0编辑  收藏  举报