I'm exposing $window.print() on scope like so:
$scope.print = $window.print;
However, this results in an exception:
angular.js:13642 Exception message: Illegal invocation
I need to call print thru a separate function, like so to make it work:
$scope.print = printFn;
function printFn() { $window.print(); }
Any ideas why I can't use the first alternative? Running Angular 1.5.5