I have two projects in local, one is using PHP (port: 80) and other Javas Spring + AngularJS (port: 8080). With the first project I'm authenticating users and creating cookies (TOKEN and USERNAME). Now, with the second app I need to get TOKEN and USERNAME but AngularJS return undefined.
Anyone knows whats happening?
EDIT 24/11/2014: This is my indexController, I'm trying to get username to show in scope.
var cavControllers = angular.module("cavControllers", ['ngCookies']);
cavControllers.controller('indexController', function($http,$rootScope, $cookieStore, $cookies){
$rootScope.title="Agora Voting";
$rootScope.username = $cookieStore.get('username');
console.log($cookieStore.get("username"));
});