-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample_include.html
More file actions
18 lines (16 loc) · 1.04 KB
/
example_include.html
File metadata and controls
18 lines (16 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- The directive here is in example_include.js (was loaded in example.html)-->
<div example-include-directive>
<h1>Example of an advanced user interface to input whatever needed data needed.</h1>
<p>The data model is parentController.model, currently it is:</p>
<pre>{{parentController.model| json : spacing}}</pre>
<p>Set it here: <input ng-model="parentController.model.test1"></p>
<!-- The controller is also in example_include.js -->
<p>We have a controller here, too, <button type="button" ng-click="testController('Yay, the controller works')">test it</button>
<p>We can show more information below, <button type="button" ng-click="toggleMoreInfo()">{{moreInfoCaption}}</button></p>
<div ng-show="showMoreInfo">
<p>The schema is at parentController.schema, it is currently:</p>
<pre>{{parentController.schema| json : spacing}}</pre>
<p>The form is parentController.form. Currently the form has the following values:</p>
<pre>{{parentController.form| json : spacing}}</pre>
</div>
</div>