Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Dev Guide: Anti Patterns

Adrian edited this page Dec 20, 2017 · 2 revisions

Anti Patterns

  1. Don't wrap element inside of $(). All AngularJS elements are already jq-objects
  2. Don't do if (!$scope.$$phase) $scope.$apply(), it means your $scope.$apply() isn't high enough in the call stack.
  3. Don't use jQuery to generate templates or DOM
  4. Don't create a new plugin without trying to discover, fork and pull request existing plugins first
  5. 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)
Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy