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

Commit

Permalink
angular form $valid
Browse files Browse the repository at this point in the history
utilize angular $valid to validate form
  • Loading branch information
enkodellc committed Jun 4, 2014
1 parent f51ccca commit c291a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/modules/articles/views/create-article.client.view.html
Expand Up @@ -3,7 +3,7 @@
<h1>New Article</h1>
</div>
<div class="col-md-12">
<form class="form-horizontal" data-ng-submit="create()" novalidate>
<form name="articleForm" class="form-horizontal" data-ng-submit="articleForm.$valid && create()" novalidate>
<fieldset>
<div class="form-group">
<label class="control-label" for="title">Title</label>
Expand All @@ -26,4 +26,4 @@ <h1>New Article</h1>
</fieldset>
</form>
</div>
</section>
</section>

0 comments on commit c291a23

Please sign in to comment.