Problem is that print function is called BEFORE angular variables are loaded so in view i get something like this {{ticketPin}}
and so on...Any suggestion how can i render angular parameters before print function is called ?
I have accountContentController
where i have this :
$scope.printFunction = function ()
{
localStorage.setItem("payoutTime", $scope.testpayoutTime);
localStorage.setItem("payoutAmount", $scope.testpayoutAmount);
localStorage.setItem("pin", $scope.testticketPin);
$window.open("/print");
}
I have printController where i have this :
$window.print();