OK, this works using promises, $ watch, $ timeout and setTimeout
About promises:
http://andyshora.com/promises-angularjs-explained-as-cartoon.html
angular $watch:
$scope. $watch $scope. $ AngularJS?
, :
http://vivule.ee/0/print
, ( ):
if($routeParams.print){
$scope.game = null;
$scope.$on('$viewContentLoaded', function(){
$scope.$watch('game', function(newVal, oldVal){
if(newVal != oldVal) {
$timeout(function(){
setTimeout(function(){
window.print();
}, 100);
}, 0);
}
}, true);
});
}