How to validate data in angular js?



How to validate data in angular js?..

Answer / Sumit Kumar Verma

To validate data in AngularJS, you can use built-in directives like ng-required, ng-minlength, ng-maxlength, etc., or write custom validators using the $validate and $setValidity methods.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is life cycle hook in angular?

1 Answers  


What is pre-linking function in angularjs?

1 Answers  


What would be a good use for ngzone service?

1 Answers  


What is Restangular?

1 Answers  


What is metadata in angular?

1 Answers  


how to generate a module in angular?

1 Answers  


What are the key components of angular?

1 Answers  


What are the types of controller?

1 Answers  


Just-in-time (jit) compiles the app in the browser, at runtime, as the application loads – this is the standard development approach. Jit is useful for development, but its performance concerns me – how would jit scale for enterprise-level applications?

1 Answers  


How to format a date in angularjs?

1 Answers  


What do you understand by linking function?

1 Answers  


Why do we use ngoninit in angular?

1 Answers  


Categories