Hi Mano,
the simplest way would v to create a global variable and access it an the views.
You can place the following code in your index.html which will create a variable called myGlobalVar and it will be accessible in all the views.
<script>
var myGlobalVar ;
</script>
Regards,
Atanu