mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
18 lines
687 B
HTML
18 lines
687 B
HTML
<h1>Page 1</h1>
|
|
<div ng-controller="demoCtrl">
|
|
<form name="demoForm" ng-submit="demoFormSubmit()" novalidate unsaved-warning-form>
|
|
<input id="userName" type="text" name="name" resettable ng-model="user.name" required>
|
|
<input type="text" name="email" resettable ng-model="user.email">
|
|
<button id="submitForm" type="submit">Submit Form</button>
|
|
<button id="clear" type="reset" unsaved-warning-clear ng-disabled="demoForm.$pristine">Disregard Changes</button>
|
|
</form>
|
|
|
|
<pre>
|
|
{{user | json}}
|
|
</pre>
|
|
|
|
<p>Is Form Dirty?: {{demoForm.$dirty}}</p>
|
|
<p ng-show="message">Message: {{message}}</p>
|
|
</div>
|
|
<input ng-model="outsideForm">
|