openmct/example/forms/res/templates/exampleForm.html
Victor Woeltjen 21f809645d [Forms] Add Forms example
Add example showing the use of generated forms, WTD-530.
2014-11-28 14:12:20 -08:00

19 lines
308 B
HTML

<div ng-controller="ExampleFormController">
<mct-form structure="form" ng-model="state" name="aForm">
</mct-form>
<ul>
<li>Dirty: {{aForm.$dirty}}</li>
<li>Valid: {{aForm.$valid}}</li>
</ul>
<pre>
<textarea>
{{state | json}}
</textarea>
</pre>
</div>