本文整理匯總了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')});
}
示例2: constructor
constructor(private viewCtrl: ViewController, private params: NavParams) {
this.representation = params.get('representation');
}
示例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');
}
示例4: constructor
constructor(public navParams: NavParams) {
this.patient = navParams.get('selectedPatient');
}