1 <form name="twitterForm" role="form">
2 <script cam-script type="text/form-script">
3 // angular form works on scope object
4 var terms = $scope.terms = [];
6 // scope function which adds a new term
7 $scope.addTerm = function() {
11 camForm.on('form-loaded', function() {
12 // declare variable 'terms' incuding metadata for serialization
13 camForm.variableManager.createVariable({
25 <div ng-repeat="term in terms">
26 <div class="control-group">
27 <div class="controls">
37 class="btn btn-default">Add</a>