2014-03-27 16:31:42 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular.module('cosign.join').controller('JoinController',
|
|
|
|
|
function($scope, $rootScope, $routeParams, Network) {
|
2014-03-31 16:48:43 -03:00
|
|
|
$rootScope.masterId = $routeParams.id;
|
2014-03-27 16:31:42 -03:00
|
|
|
|
|
|
|
|
$scope.init = function() {
|
|
|
|
|
console.log('-------- init --------');
|
|
|
|
|
console.log($rootScope.peerId);
|
|
|
|
|
|
2014-03-31 16:48:43 -03:00
|
|
|
Network.connect($rootScope.masterId);
|
2014-03-27 16:31:42 -03:00
|
|
|
};
|
|
|
|
|
});
|