So I have two angularjs applications what i want is to pass a variable from app1
to app2
.
So I tried using window popup to pass the variable but its giving me undefined value.
app1
vm.test = test;
function test() {
var popupWindow = window.open('http://localhost:4000');
popupWindow.mySharedData = 'testdakjasdhasgdhasdghasgd';
}
app2
$interval(callAtInterval, 1000);
function callAtInterval() {
// var oldata;
console.log(window.mySharedData); // giving me undefined value
}