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