angularjs - how to get session or cookie value set in django, php, ruby in angular? -
i trying session and/or cookie value set in django (although don't see being different across other languages php or ruby).
i trying value following angular:
var app = angular.module('edgefeed', ['ngcookies']); app.controller('feedcontroller', function($http, $cookiestore) { self = this; console.log(sessionstorage.getitem('session_name')); console.log($cookiestore.get('cookie_name'));
in console output:
null
undefined
how can session or cookie value in angular?
Comments
Post a Comment