'maxlength': 'Video name cannot be more than 50 characters long.'
}
};
+export const VIDEO_CATEGORY = {
+ VALIDATORS: [ Validators.required ],
+ MESSAGES: {
+ 'required': 'Video category is required.'
+ }
+};
export const VIDEO_DESCRIPTION = {
VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
MESSAGES: {
};
export const VIDEO_TAGS = {
- VALIDATORS: [ Validators.pattern('^[a-zA-Z0-9]{2,10}$') ],
+ VALIDATORS: [ Validators.pattern('^[a-zA-Z0-9]{0,10}$') ],
MESSAGES: {
'pattern': 'A tag should be between 2 and 10 alphanumeric characters long.'
}