I want to use the session variable logged to hide and display my angular elements I set the value of this element to true in java code.
request.getSession().setAttribute("logged", "true");
I tried the following code
<div ng-show = "${logged}">
but the div is not displayed till I make refresh (F5) to my page
EDIT: I am using spring security with angularjs