當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ionic.NavParams類代碼示例

本文整理匯總了TypeScript中ionic/ionic.NavParams的典型用法代碼示例。如果您正苦於以下問題:TypeScript NavParams類的具體用法?TypeScript NavParams怎麽用?TypeScript NavParams使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了NavParams類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: constructor

 constructor(params: NavParams, modal: Modal, menu: MenuData, nav: NavController, cart: CartService) {
     this.item = _.cloneDeep(params.get('item'));
     this.order = [];
     this.cart = cart;
     this.modal = modal;
     this.menu = menu;
     this.nav = nav;
     this.initOrder();
 }
開發者ID:philmerrell,項目名稱:deliver-client,代碼行數:9,代碼來源:menuDetail.ts

示例2: constructor

 constructor(
   private nav: NavController,
   navParams: NavParams,
   private geofenceService: GeofenceService,
   private app: IonicApp
 ) {
   this.geofenceService = geofenceService;
   this.geofence = navParams.get("geofence");
   this.transitionType = this.geofence.transitionType.toString();
   this.notificationText = this.geofence.notification.text;
   this._radius = this.geofence.radius;
   this._latLng = Leaflet.latLng(this.geofence.latitude, this.geofence.longitude);
 }
開發者ID:mjsorribas,項目名稱:ionic2-geofence,代碼行數:13,代碼來源:geofence-details.ts

示例3: constructor

    constructor(nav: NavController, params: NavParams) {
        super();
        let partyId = params.get('partyId');
        this.subscribe('party', partyId, () => {
            this.autorun(() => {
                this.party = Parties.findOne(partyId);
                this.getUsers(this.party);
            });
        }, true);

        this.subscribe('uninvited', partyId, () => {
            this.getUsers(this.party);
        }, true);
    }
開發者ID:fishdude,項目名稱:ionic2-meteor,代碼行數:14,代碼來源:party-details.ts

示例4: constructor

 constructor(params: NavParams) {
     let partyId = params.get('partyId');
     super(partyId);
 }
開發者ID:rvetere,項目名稱:meteor-angular2.0-socially,代碼行數:4,代碼來源:party-details.ts

示例5: constructor

 constructor(params: NavParams) {
  this.chat = params.get('chat');
 }
開發者ID:philmerrell,項目名稱:deliver-client,代碼行數:3,代碼來源:chat.ts


注:本文中的ionic/ionic.NavParams類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。