text: (function() {
    angular.module("mrgApp").directive('registrationSuccess', ['$rootScope', 'SessionStore', function($rootScope, SessionStore) {
      return {
        restrict: 'E',
        templateUrl: 'partials/registration/registrationSuccess.html',
        link: function($scope) {
          if(SessionStore.successfulRegistration()){
            $scope.visible = true;
            SessionStore.successfulRegistration(false);
          }
        }
      };
    }]);
  }());