eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
18 lines (12 loc) • 428 B
JavaScript
// example - valid: true
$interval(function() {
// ...
}, 1000)
// example - valid: false, errorMessage: "You should use the $interval service instead of the default window.setInterval method"
setInterval(function() {
// ...
}, 1000)
// example - valid: false, errorMessage: "You should use the $interval service instead of the default window.setInterval method"
window.setInterval(function() {
// ...
}, 1000)