text: angular.module('socialNetwork.common',[])
      .controller('MainCtrl', [
          '$scope',
          '$http',
          'identity',
          function ($scope, $http, identity) {
  
                  identity.getCurrentUser()
                      .then(function(user){
                          $scope.currentUser = user;
                      });
                  $scope.isAuthenticated = identity.isAuthenticated();
  
  
           }]);