All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
$window
window
Instead of the default window object, prefer the AngularJS wrapper service $window.
Rule based on Angular 1.x
window.alert('Hello world!');
$window.alert('Hello world!');