"Referencing the Window in Angular expressions is disallowed!"
How do we do a window.open now?
Error: [$parse:isecwindow] Referencing the Window in Angular expressions is disallowed! Expression: foo()
scope.foo = ->
window.open 'https://example.com'
The anwser of @w3apps was enough for me.
+1 @w3apps
Looking for an upvote on @w3apps answer, then remember I'm not on stackoverflow :)
Looking for an upvote on @SergeyBukhman comment, then remembering I'm not on stackoverflow ...
Thanks for all the upvotes on https://github.com/angular/angular.js/issues/4853#issuecomment-28491586 but I am locking this conversation as all these extra comments are actually diluting the ability to get access to that help.
I will add something to the API docs to cover this issue.
Added here https://github.com/angular/angular.js/commit/05d3ed0d9bc71c8ee5329cfd87163a2d659fc9df