harness-drone/server/app/scripts/controllers/logout.js

7 lines
188 B
JavaScript
Raw Normal View History

2014-10-14 04:10:55 +00:00
'use strict';
angular.module('app').controller("LogoutController", function() {
console.log("logging out")
localStorage.removeItem("access_token");
window.location.href = "/login";
});