Required
Check if the input value is not empty.
The validation rule does not require a value to run.
Example
src/app/posts/controllers/create-post.ts
// ...
createPost.validation = {
rules: {
title: ["required"],
},
};
Check if the input value is not empty.
The validation rule does not require a value to run.
// ...
createPost.validation = {
rules: {
title: ["required"],
},
};