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  阅读(215)  评论(0)    收藏  举报