本文整理汇总了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');
}