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


TypeScript index.NavParams類代碼示例

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


在下文中一共展示了NavParams類的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類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。