N
N
nuclear_kote2016-10-11 20:51:28
Angular
nuclear_kote, 2016-10-11 20:51:28

How to get form validation result in component?

In the first Angular it was done something like this: $scope.profileForm.$invalid.
How to do it in Angular 2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nuclear_kote, 2016-10-12
@nuclear_kote

<form #loginFrm="ngForm" (ngSubmit)="onSubmit(loginFrm)" novalidate>
....
</form>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question