forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 4
Anti Patterns
Dean Sofer edited this page Sep 18, 2013
·
6 revisions
Related: Best Practices
- Don't wrap
element
inside of$()
. All AngularJS elements are already jq-objects - Don't do
if (!$scope.$$phase) $scope.$apply()
, it means your$scope.$apply()
isn't high enough in the call stack. - Don't use jQuery to generate templates or DOM
- Try to discover, fork and pull request existing plugins before starting new ones
- If you find mistakes in the docs help out by submitting a patch