exports

overview






this.$exports = function () {		
  return ['data1','data2'];
}
					


Example Data Component


When a data component inserts data into the workspace or blog, it will typically do so in its implementation of the $process method.


this.$process = function($val){
  $val.set('data', [1,2,3,4,5]);
}
					


Once it has inserted the data, it should indicate that it has inserted the data by indicating the data set inserted in its $exports method. This helps the framework track data dependencies.



this.$exports = function () {		
  return ['data'];
}