zoukankan      html  css  js  c++  java
  • ionic1页面间传递参数的问题

    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}
     })
  • 相关阅读:
    H
    饭卡(0 1背包)
    J
    H
    E
    3991: [SDOI2015]寻宝游戏
    CF 1051 F. The Shortest Statement
    CF 643 E. Bear and Destroying Subtrees
    4567: [Scoi2016]背单词
    4946: [Noi2017]蔬菜
  • 原文地址:https://www.cnblogs.com/liaolei1/p/7235261.html
Copyright © 2011-2022 走看看