You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dean Sofer edited this page Aug 30, 2013
·
8 revisions
Start prefixing your directives and services if you plan to release them. You should only feel inclined to ignore them WITHIN YOUR OWN APP. Checkout ui-alias to make life easier.
Stop wrapping element inside of $(). It's redundant.
Start using $scope, $element, and $attrs as your linking function signature. These are the OFFICIAL injectable names, lets prevent confusion and inconsistency.
Stop forgetting to setup a $scope.$on('$destroy', ...) listener in your directives.
Stop doing if (!$scope.$$phase) $scope.$apply(), it means your $scope.$apply() isn't high enough in the call stack.
Stop using jQuery to generate templates
Stop releasing the same plugin 8 other people released. Learn to fork and pull request instead.
Stop complaining about the docs without submitting a patch. They suck, we know.