open source analysis and data warehouse cloud platform for clinical and translational research
Science gateways must provide intelligible access to data and tools while ensuring a rich user experience.
... can become huge structures of mixed business and view logic, as it’s all too easy to house anything you need for the view inside the controller.
Should:
<div ng-controller="MainController">
{{ someObj }}
</div>
app.controller('MainController', function ($scope) {
$scope.someObj = 5
});
<div ng-controller="MainController as main">
{{ main.someProp }}
</div>
app.controller('MainController', function () {
this.someProp = 5
});
angular.module('app').controller("MainController", function($scope){
$scope.firstName = "Leon";
$scope.lastName = "Revill";
});
angular.module('app').controller("SubController", function($scope){
$scope.firstName = "Douglas";
});
Directives allow for the creation of reusable HTML elements, attributes or classes in a conceptually similar way to Web Components
Modular, shareable and reusable
Possibly can be embedded in older versions of TranSMART
Used to fetch, contain and process data
Expose an internal API
Plugin architechture
Propose a more streamlined way of creating an analysis UI environment, with better analysis transparency and reproducibility
POST .../ocpu/library/[packageName]/R/[functionName]
GET .../ocpu/tmp/[session key]
Analysis(title = "Heatmap",
Step(title = "Fetch data", func = "fetchData", package = "opencpuRScripts",
DropdownInput(title = "Select a projection", param = "proj", options = list("zscore", "default")),
InfoTextOutput(when = "RUNNING", message = "Fetching data...")))
No persistent session :(
Thank you