Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
() => {
let formBuilder = new FormBuilder();
let formGroup = formBuilder.group({
'password':['User@123'],
'confirmPassword':'user@123'
});
expect(RxwebValidators.compare({fieldName:'password',message:'You must enter same password'})(formGroup.controls.confirmPassword)).toEqual({'compare':{ message: 'You must enter same password', refValues: [ 'user@123','User@123' ] } });
});
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
email:['',],
confirmEmail:['', RxwebValidators.compare({fieldName:'email' })],
});
}
}
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' ,message:'Both Input is not matched' })],
});
}
}
ngOnInit(): void {
this.isLoggedIn = false;
if (localStorage.getItem('isLoggedIn') === 'true') {
this.isLoggedIn = true;
}
this.applicationBroadcast.urlBroadCast(true);
this.userFormGroup = this.formBuilder.group({
password: ['',],
confirmPassword: ['', RxwebValidators.compare({ fieldName: 'password' })],
});
this.userForm = this.formBuilder.group({
country:[''],
identityNumber:['',RxwebValidators.required({conditionalExpression:(x) => x.country == 'India' })]
});
this.user = new User();
this.userInfoFormGroup = this.rxFormBuilder.formGroup(this.user);
this.http.get('assets/json/home.json?v='+environment.appVersion).subscribe((response:object) => {
this.codeContent = response;
this.http.get('assets/json/dynamic-validation.json?v='+environment.appVersion).subscribe((dynamicValidationConfiguration:any) => {
this.userModelFormGroup = this.rxFormBuilder.group({
firstName:['Bharat']
},
new FormBuilderConfiguration( { dynamicValidation: dynamicValidationConfiguration }));
this.showComponent= true;
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' ,message:'Both Input is not matched' })],
});
}
}
ngOnInit(): void {
this.userFormGroup = this.formBuilder.group({
password: ['',],
confirmPassword: ['', RxwebValidators.compare({ fieldName: 'password' })],
});
this.userForm = this.formBuilder.group({
country:[''],
identityNumber:['',RxwebValidators.required({conditionalExpression:(x) => x.country == 'India' })]
});
this.user = new User();
this.userInfoFormGroup = this.rxFormBuilder.formGroup(this.user);
this.http.get('assets/json/home.json').subscribe((response:object) => {
this.codeContent = response;
this.http.get('assets/json/dynamic-validation.json').subscribe((dynamicValidationConfiguration:any) => {
this.userModelFormGroup = this.rxFormBuilder.group({
firstName:['Bharat']
},
new FormBuilderConfiguration( { dynamicValidation: dynamicValidationConfiguration }));
this.showComponent= true;
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' ,message:'Both Input is not matched' })],
});
}
}
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' ,message:'You must enter same password' })],
});
}
}
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' })],
});
}
}
ngOnInit() {
this.userFormGroup = this.formBuilder.group({
email:['',],
confirmEmail:['', RxwebValidators.compare({fieldName:'email' })],
password:['',],
confirmPassword:['', RxwebValidators.compare({fieldName:'password' ,message:'You must enter same password' })],
});
}
}