AngularJS 帶參數跳轉

  

$stateProvider.state('page.home', {
   url:"/user/detail",
   templateUrl: "/html/userDetailView",
   controller: "userDetailController",
   title:"會員詳情",
   params:{menberNo:null}
})html


以上三種傳參方式都使用下面這種方式跳轉ide

$state.go("page.home",{menberNo:"0010001"});
 url

獲取的時候都同樣spa

$stateParams.menberNohtm

相關文章
相關標籤/搜索