I have a challenge writing this code in Angular:
opener.window.postMessage({code:$scope.variable1,amount:$scope.variable2}."*");
Can someone help me with the syntax for this line of code in Angular? The child component is coded in Angular while the parent window uses simple JavaScript. This specific line of code needs to be executed on the child window.