Try to search your question here, if you can't find : Ask Any Question Now ?

How to validate input text length in material input?

HomeCategory: stackoverflowHow to validate input text length in material input?
pragati asked 1 week ago

I am developing an application using angular dart. I am using angular dart material input for getting input from user.

I have a multiline text input for which I use material input and type=”text”.

I have made this field “required” but the problem is when the user enters white space or enter, the “required” is gone. I need a attribute where i can specify a constraint that at least one non-white space character must be entered.

How to achieve this?

Here is my code where I have used material input:

    ngControl="textAnswer" [(ngModel)]="answer" multiline
    type="text" label="Your answer" required>
1 Answers
Best Answer
Matthias answered 1 week ago
Your Answer

8 + 3 =

Popular Tags

WP Facebook Auto Publish Powered By :