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'
32 <div ng-repeat="term in terms">
33 <div class="control-group">
34 <div class="controls">
44 class="btn btn-default">Add</a>