bioweb  0.09.92
C++/Python(django)/JavaScript(angularJS) framework
Functions | Variables
services.js File Reference

AngularJS services, AJAX communication with the server. More...

Go to the source code of this file.

Functions

angular module ('myAppServices', []).service('srvInfo'
 
 service ('srvCommands', function($http){this.baseURL=client_server_prefix+ '/ajax/calcpy/';this.getCppCommands=function(callback){return $http.get(this.baseURL+ 'getCommands').success(callback);};this.startCommand=function(callback){return $http.get(this.baseURL+ 'startCommand').success(callback);};})
 

Variables

function $http
 
this getVersion
 
this getCurrent
 
this getCppNumber
 

Detailed Description

AngularJS services, AJAX communication with the server.

Definition in file services.js.

Variable Documentation

function $http
Initial value:
{
this.baseURL = client_server_prefix + '/ajax/'

Definition at line 6 of file services.js.

this getCppNumber
Initial value:
= function(callback) {
return $http.get(this.baseURL + 'calcpy/getNumber').success(callback);
}

Definition at line 15 of file services.js.

this getCurrent
Initial value:
= function(callback) {
return $http.get(this.baseURL + 'current/get').success(callback);
}

Definition at line 12 of file services.js.

this getVersion
Initial value:
= function(callback) {
return $http.get(this.baseURL + 'version/get').success(callback);
}

Definition at line 9 of file services.js.