When the token is different from null, my IsAuthenticated must be positive,
app.controller("HomeCtrl", function ($scope, $location) {
let token = localStorage.getItem("token");
$scope.user = JSON.parse(token);
if (token === null)...
asked by
14.03.2017 / 18:33