i399exng1comp/app/board.srv.js

28 lines
448 B
JavaScript
Raw Normal View History

2017-04-26 09:23:53 +03:00
(function () {
'use strict';
angular.module('app').service('board', Srv);
2017-04-26 11:35:05 +03:00
Srv.$inject = ['$q'];
2017-04-26 09:23:53 +03:00
2017-04-26 11:35:05 +03:00
function Srv($q) {
2017-04-26 09:23:53 +03:00
this.getBoardState = getBoardState;
this.setLight = setLight;
this.setAlarm = setAlarm;
function getBoardState() {
2017-04-26 11:35:05 +03:00
return { light: false, alarm: true };
2017-04-26 09:23:53 +03:00
}
function setLight(isOn) {
}
function setAlarm(isOn) {
}
}
})();