Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit c291a23

Browse files
committed
angular form $valid
utilize angular $valid to validate form
1 parent f51ccca commit c291a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/modules/articles/views/create-article.client.view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>New Article</h1>
44
</div>
55
<div class="col-md-12">
6-
<form class="form-horizontal" data-ng-submit="create()" novalidate>
6+
<form name="articleForm" class="form-horizontal" data-ng-submit="articleForm.$valid && create()" novalidate>
77
<fieldset>
88
<div class="form-group">
99
<label class="control-label" for="title">Title</label>
@@ -26,4 +26,4 @@ <h1>New Article</h1>
2626
</fieldset>
2727
</form>
2828
</div>
29-
</section>
29+
</section>

0 commit comments

Comments
 (0)