angular.module('exampleApp', [
'angularAutoForms'
])
.controller('exampleCtrl', function ($scope)
{
});
<!DOCTYPE html>
<html ng-app="exampleApp">
<head>
<meta charset="utf-8" />
<title>Angular Auto Forms Example</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width">
</head>
<body ng-controller="exampleCtrl"></body>
<div class="container" ng-include="'example.html'">
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js"></script>
<script src="//johannesjo.github.io/angular-auto-forms/angular-auto-forms.min.js"></script>
<script src="app.js"></script>
</body>
</html>
<h2><a href="https://github.com/johannesjo/angular-auto-forms">Angular Auto Forms</a> Example</h2>
<div class="alert alert-info">Try changing the aaf-form-handler attribute to autoFormBootstrap.horizontal or to autoFormBootstrap.inline. Or set the aaf-ignore attribute to the form</div>
<form role="form"
name="exampleForm"
ng-submit="submit()"
aaf-form-handler="autoFormBootstrap.basic">
<input type="email"
placeholder="Enter Email"
ng-model="formData.emailAddress"
required
aaf-label="Email">
<input type="password"
placeholder="Enter Password"
ng-model="formData.password"
required
aaf-label="Your public Password: {{ formData.password }}">
<input type="checkbox"
required
aaf-label="I agree!"
ng-model="formData.check">
<input type="text"
placeholder="Enter asd"
ng-pattern="/^asd$/i"
validation-msg-pattern="Not asd :("
required
ng-model="formData.patternRequired"
aaf-label="Pattern-Label for /asd/">
<textarea ng-model="formData.textarea"
ng-minlength="4"
required
placeholder="Enter Comment"
aaf-label="Some Textarea"></textarea>
<select ng-model="formData.select"
aaf-label="Some Select"
required>
<option value="AA">Test-Option</option>
</select>
<button type="submit">Submit Form</button>
</form>
[Project on github](https://github.com/johannesjo/angular-auto-forms)