text: (function() {
    'use strict';
  
  	angular.module('meanPassportBoilerplateApp')
  	.controller('logoutController',
  	  ['$scope', '$location', 'AuthService',
  	  function ($scope, $location, AuthService) {
  
  	    $scope.logout = function () {
  
  	      // call logout from service
  	      AuthService.logout()
  	        .then(function () {
  	          $location.path('/login');
  	        });
  
  	    };
  
  	}]);
  })();