(function() { "use strict"; angular.module("raz") .service("popoutManagerService", [function () { var workerId = null; return { hasWorker: hasWorker, setWorker: setWorker }; function hasWorker() { return workerId !== null; } function setWorker(id) { workerId = id; } }]); })();