if i made a request on my server with $http i the the followig response:
Request URL:http://www.test.tst/login
Request Method:GET
Status Code:200 OK
Request
You can use ngCookies. In order to do it, you need to include the angular-cookies.js and the ngCookie in your module.
Then you can inject $cookies and get the cookie via its get function
<script src="angular-cookies.js">
And, in your Js
angular.module('app', ['ngCookies']).controller('Test', ['$cookies', '$scope',
function($cookies, $scope) {
$scope.value = $cookies.get('JSESSIONID');
}
]);
$cookies does provide the .get function that is $cookieScope
If using $cookies you should just use $cookies.JSESSIONID
Angular $cookies
and
Angular $cookieStore