EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

Forbid scalar values on $scope

Open
#315 0 comments 2 reactions 0 assignees View on GitHub
Rule
Dominant language
JavaScript
Stars
620
Forks
127
PR merge metrics
No merged PRs in 30d

Description

From the angular wiki (https://github.com/angular/angular.js/wiki/Anti-Patterns):

Don't use a scalar variable (null is scalar) as a model within an isolate scope (such as ng-if). (Example: http://embed.plnkr.co/qRhLfw/preview)

(Last missing point from #133)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.