1.  $scope.routeinfo是我要传递的参数--到scheddulcontent这个页面去:

   $state.go( "scheddulcontent" , { 'routeinfo' : $scope.routeinfo } ) ;

2.接收参数的页面:需要注入:$stateParams

        获取参数:$scope.info=$stateParams.routeinfo;

3.路由的设置(在接收参数的页面设置):

.state('scheddulcontent', {
  url: '/scheddulcontent',
  templateUrl: 'templates/commonusefunction/operating/show_route.html',
  resolve: load([
   'js/services/commonusefunction/operatingFactory.js',
   'js/controllers/commonusefunction/operating/show_routeController.js'
  ]),
  params: {'routeinfo': null}
 })

 

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-07-27
  • 2021-10-05
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-21
  • 2022-02-04
  • 2021-12-17
  • 2022-12-23
  • 2021-10-02
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案