本文整理汇总了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;未经允许,请勿转载。 |
请发表评论