forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Anti Patterns
Ryan Brooks edited this page Feb 5, 2014
·
8 revisions
Related: Best Practices
- Don't wrap
elementinside 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
- Don't create a new plugin without trying to discover, fork and pull request existing plugins first