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({
18 // indicate that object is serialized as json
19 serializationDataFormat: 'application/json',
20 // provide classname of java object
21 objectTypeName: 'at.ac.tuwien.infosys.aic.serialized.model.Terms'
34 class="btn btn-default">Add</a>
37 <div ng-repeat="term in terms">
38 <div class="control-group">
39 <label class="control-label" for="name">Name</label>
40 <div class="controls">