angular 8 security vulnerabilities code example
Example 1: angular sanitize vs validators
this.myForm = new FormGroup({
firstName: new FormControl('Josh'),
lastName: new FormControl('Morony')
});
Example 2: angular sanitize vs validators
this.slideOneForm = formBuilder.group({
firstName: ['', Validators.compose([Validators.maxLength(30), Validators.pattern('[a-zA-Z ]*'), Validators.required])],
lastName: ['', Validators.compose([Validators.maxLength(30), Validators.pattern('[a-zA-Z ]*'), Validators.required])],
age: ['', AgeValidator.isValid]
});