当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript NavParams.get方法代码示例

本文整理汇总了TypeScript中ionic-angular/index.NavParams.get方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NavParams.get方法的具体用法?TypeScript NavParams.get怎么用?TypeScript NavParams.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ionic-angular/index.NavParams的用法示例。


在下文中一共展示了NavParams.get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: constructor

	// Custom validator:
	// https://auth0.com/blog/2016/05/03/angular2-series-forms-and-custom-validation/
	// http://stackoverflow.com/questions/31788681/angular2-validator-which-relies-on-multiple-form-fields
	// http://stackoverflow.com/questions/35474991/angular-2-form-validating-for-repeat-password
	constructor(private authService:AuthService, private error:ErrorService, private viewCtrl:ViewController, fb:FormBuilder, params:NavParams, private toaster:Toaster) {
		// this.password = params.get('password');
		this.email = params.get('email');
		this.changePasswordForm= fb.group({
			oldPassword: ['', Validators.required],
			newPassword: ['', Validators.required],
			confirmPassword: ['', Validators.required],
		}, {validator: matchingPasswords('newPassword', 'confirmPassword')});
	}
开发者ID:architruc,项目名称:teacher-agenda,代码行数:13,代码来源:change-password.ts

示例2: constructor

 constructor(private viewCtrl: ViewController, private params: NavParams) {
   this.representation = params.get('representation');
 }
开发者ID:DevVersion,项目名称:vpapp-ionic2,代码行数:3,代码来源:moredetails.ts

示例3: constructor

 constructor(navParams: NavParams, viewCtrl: ViewController,_myLectureService: LectureService) {
     this.viewCtrl = viewCtrl;
     this._myLectureService = _myLectureService;
     this.lecture = new Lecture();
     this.lecture.module_idmodule = navParams.get('idmodule');
 }
开发者ID:AndreasGassmann,项目名称:fhnw-scheduler,代码行数:6,代码来源:add-lecture-modal.ts

示例4: constructor

 constructor(public navParams: NavParams) {
     this.patient = navParams.get('selectedPatient');
 }
开发者ID:SteveDZ,项目名称:Ionic2-secure-offline-storage,代码行数:3,代码来源:patientDetailsPage.ts


注:本文中的ionic-angular/index.NavParams.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。