1 import { Validators } from '@angular/forms';
3 export const VIDEO_NAME = {
4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(50) ],
6 'required': 'Video name is required.',
7 'minlength': 'Video name must be at least 3 characters long.',
8 'maxlength': 'Video name cannot be more than 50 characters long.'
12 export const VIDEO_CATEGORY = {
13 VALIDATORS: [ Validators.required ],
15 'required': 'Video category is required.'
19 export const VIDEO_LICENCE = {
20 VALIDATORS: [ Validators.required ],
22 'required': 'Video licence is required.'
26 export const VIDEO_LANGUAGE = {
31 export const VIDEO_DESCRIPTION = {
32 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ],
34 'required': 'Video description is required.',
35 'minlength': 'Video description must be at least 3 characters long.',
36 'maxlength': 'Video description cannot be more than 250 characters long.'
40 export const VIDEO_TAGS = {
41 VALIDATORS: [ Validators.maxLength(10) ],
43 'maxlength': 'A tag should be less than 10 characters long.'