本文整理匯總了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();
}
示例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);
}
示例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);
}
示例4: constructor
constructor(params: NavParams) {
let partyId = params.get('partyId');
super(partyId);
}
示例5: constructor
constructor(params: NavParams) {
this.chat = params.get('chat');
}