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({
20 camForm.on('submit', function() {
21 // remove '$$hashKey' properties
22 angular.forEach($scope.terms, function(term) {
23 delete term.$$hashKey;
31 <div ng-repeat="term in terms">
32 <div class="control-group">
33 <div class="controls">
44 class="btn btn-default">Add</a>