Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
/angular.jsPublic archive

Dev Guide: Anti Patterns

Adrian edited this pageDec 20, 2017 ·2 revisions

Anti Patterns

  1. Don't wrapelement inside of$(). All AngularJS elements are already jq-objects
  2. Don't doif (!$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

[8]ページ先頭

©2009-2025 Movatter.jp