integrate new name and header. Signin/signout flow

This commit is contained in:
Gustavo Cortez 2014-03-31 12:48:35 -03:00
commit 4cd48b7bb2
12 changed files with 130 additions and 74 deletions

View file

@ -1,21 +0,0 @@
'use strict';
angular.module('copay.join').controller('JoinController',
function($scope, $rootScope, $routeParams, Network) {
$scope.connectionId = $routeParams.id;
$scope.copayers = [];
$scope.init = function() {
console.log('-------- init --------');
console.log($rootScope.peerId);
$scope.copayers.push($rootScope.peerId);
Network.connect($scope.connectionId, function(copayer) {
console.log('----- join connect --------');
console.log(copayer);
$scope.copayers.push(copayer);
$scope.$digest();
});
};
});